xslt-processor 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dom/functions.d.ts +3 -3
- package/dom/functions.js.map +1 -1
- package/dom/util.d.ts +4 -0
- package/dom/util.js +4 -1
- package/dom/util.js.map +1 -1
- package/package.json +1 -1
- package/umd/dom/functions.d.ts +3 -3
- package/umd/dom/util.d.ts +4 -0
- package/umd/xpath/expressions/binary-expr.d.ts +1 -1
- package/umd/xpath/expressions/function-call-expr.d.ts +1 -1
- package/umd/xpath/expressions/location-expr.d.ts +1 -1
- package/umd/xpath/expressions/step-expr.d.ts +1 -1
- package/umd/xpath/functions/non-standard.d.ts +1 -1
- package/umd/xpath/functions/standard.d.ts +7 -1
- package/umd/xpath/grammar-rule-candidate.d.ts +8 -0
- package/umd/xpath/index.d.ts +2 -8
- package/umd/xpath/node-tests/index.d.ts +8 -0
- package/umd/xpath/node-tests/node-test-any.d.ts +6 -0
- package/umd/xpath/node-tests/node-test-comment.d.ts +6 -0
- package/umd/xpath/node-tests/node-test-element-or-attribute.d.ts +6 -0
- package/umd/xpath/node-tests/node-test-name.d.ts +10 -0
- package/umd/xpath/node-tests/node-test-nc.d.ts +9 -0
- package/umd/xpath/node-tests/node-test-pi.d.ts +8 -0
- package/umd/xpath/node-tests/node-test-text.d.ts +6 -0
- package/umd/xpath/node-tests/node-test.d.ts +5 -0
- package/umd/xpath/tokens.d.ts +36 -206
- package/umd/xpath/values/boolean-value.d.ts +2 -1
- package/umd/xpath/values/index.d.ts +1 -0
- package/umd/xpath/values/node-set-value.d.ts +2 -1
- package/umd/xpath/values/node-value.d.ts +7 -0
- package/umd/xpath/values/number-value.d.ts +2 -1
- package/umd/xpath/values/string-value.d.ts +2 -1
- package/umd/xpath/xpath-token-rule.d.ts +7 -0
- package/umd/xpath/xpath.d.ts +59 -17
- package/umd/{xpath → xslt}/expr-context.d.ts +10 -1
- package/umd/xslt/xslt-decimal-format-settings.d.ts +28 -0
- package/umd/xslt/xslt.d.ts +39 -30
- package/umd/xslt-processor.js +2 -2
- package/umd/xslt-processor.js.map +1 -1
- package/xpath/expressions/binary-expr.d.ts +1 -1
- package/xpath/expressions/function-call-expr.d.ts +1 -1
- package/xpath/expressions/function-call-expr.js +1 -0
- package/xpath/expressions/function-call-expr.js.map +1 -1
- package/xpath/expressions/location-expr.d.ts +1 -1
- package/xpath/expressions/location-expr.js +1 -1
- package/xpath/expressions/location-expr.js.map +1 -1
- package/xpath/expressions/step-expr.d.ts +1 -1
- package/xpath/expressions/step-expr.js +1 -1
- package/xpath/expressions/step-expr.js.map +1 -1
- package/xpath/functions/non-standard.d.ts +1 -1
- package/xpath/functions/standard.d.ts +7 -1
- package/xpath/functions/standard.js +93 -2
- package/xpath/functions/standard.js.map +1 -1
- package/xpath/grammar-rule-candidate.d.ts +8 -0
- package/xpath/grammar-rule-candidate.js +3 -0
- package/xpath/grammar-rule-candidate.js.map +1 -0
- package/xpath/index.d.ts +2 -8
- package/xpath/index.js +2 -8
- package/xpath/index.js.map +1 -1
- package/xpath/node-tests/index.d.ts +8 -0
- package/xpath/node-tests/index.js +18 -0
- package/xpath/node-tests/index.js.map +1 -0
- package/xpath/node-tests/node-test-any.d.ts +6 -0
- package/xpath/{node-test-any.js → node-tests/node-test-any.js} +1 -1
- package/xpath/node-tests/node-test-any.js.map +1 -0
- package/xpath/node-tests/node-test-comment.d.ts +6 -0
- package/xpath/{node-test-comment.js → node-tests/node-test-comment.js} +2 -2
- package/xpath/node-tests/node-test-comment.js.map +1 -0
- package/xpath/node-tests/node-test-element-or-attribute.d.ts +6 -0
- package/xpath/{node-test-element-or-attribute.js → node-tests/node-test-element-or-attribute.js} +2 -2
- package/xpath/node-tests/node-test-element-or-attribute.js.map +1 -0
- package/xpath/node-tests/node-test-name.d.ts +10 -0
- package/xpath/node-tests/node-test-name.js +39 -0
- package/xpath/node-tests/node-test-name.js.map +1 -0
- package/xpath/node-tests/node-test-nc.d.ts +9 -0
- package/xpath/{node-test-nc.js → node-tests/node-test-nc.js} +1 -1
- package/xpath/node-tests/node-test-nc.js.map +1 -0
- package/xpath/node-tests/node-test-pi.d.ts +8 -0
- package/xpath/{node-test-pi.js → node-tests/node-test-pi.js} +2 -2
- package/xpath/node-tests/node-test-pi.js.map +1 -0
- package/xpath/node-tests/node-test-text.d.ts +6 -0
- package/xpath/{node-test-text.js → node-tests/node-test-text.js} +2 -2
- package/xpath/node-tests/node-test-text.js.map +1 -0
- package/xpath/node-tests/node-test.d.ts +5 -0
- package/xpath/node-tests/node-test.js +3 -0
- package/xpath/node-tests/node-test.js.map +1 -0
- package/xpath/tokens.d.ts +36 -206
- package/xpath/tokens.js +2 -2
- package/xpath/tokens.js.map +1 -1
- package/xpath/values/boolean-value.d.ts +2 -1
- package/xpath/values/boolean-value.js.map +1 -1
- package/xpath/values/index.d.ts +1 -0
- package/xpath/values/index.js +25 -31
- package/xpath/values/index.js.map +1 -1
- package/xpath/values/node-set-value.d.ts +2 -1
- package/xpath/values/node-set-value.js.map +1 -1
- package/xpath/values/node-value.d.ts +7 -0
- package/xpath/values/node-value.js +3 -0
- package/xpath/values/node-value.js.map +1 -0
- package/xpath/values/number-value.d.ts +2 -1
- package/xpath/values/number-value.js.map +1 -1
- package/xpath/values/string-value.d.ts +2 -1
- package/xpath/values/string-value.js.map +1 -1
- package/xpath/xpath-token-rule.d.ts +7 -0
- package/xpath/xpath-token-rule.js +3 -0
- package/xpath/xpath-token-rule.js.map +1 -0
- package/xpath/xpath.d.ts +59 -17
- package/xpath/xpath.js +220 -214
- package/xpath/xpath.js.map +1 -1
- package/xpathdebug.js +15 -14
- package/xpathdebug.js.map +1 -1
- package/{xpath → xslt}/expr-context.d.ts +10 -1
- package/{xpath → xslt}/expr-context.js +22 -9
- package/xslt/expr-context.js.map +1 -0
- package/xslt/xslt-decimal-format-settings.d.ts +28 -0
- package/xslt/xslt-decimal-format-settings.js +3 -0
- package/xslt/xslt-decimal-format-settings.js.map +1 -0
- package/xslt/xslt.d.ts +39 -30
- package/xslt/xslt.js +174 -113
- package/xslt/xslt.js.map +1 -1
- package/umd/xpath/node-test-any.d.ts +0 -5
- package/umd/xpath/node-test-comment.d.ts +0 -5
- package/umd/xpath/node-test-element-or-attribute.d.ts +0 -5
- package/umd/xpath/node-test-name.d.ts +0 -8
- package/umd/xpath/node-test-nc.d.ts +0 -8
- package/umd/xpath/node-test-pi.d.ts +0 -7
- package/umd/xpath/node-test-text.d.ts +0 -5
- package/xpath/expr-context.js.map +0 -1
- package/xpath/node-test-any.d.ts +0 -5
- package/xpath/node-test-any.js.map +0 -1
- package/xpath/node-test-comment.d.ts +0 -5
- package/xpath/node-test-comment.js.map +0 -1
- package/xpath/node-test-element-or-attribute.d.ts +0 -5
- package/xpath/node-test-element-or-attribute.js.map +0 -1
- package/xpath/node-test-name.d.ts +0 -8
- package/xpath/node-test-name.js +0 -22
- package/xpath/node-test-name.js.map +0 -1
- package/xpath/node-test-nc.d.ts +0 -8
- package/xpath/node-test-nc.js.map +0 -1
- package/xpath/node-test-pi.d.ts +0 -7
- package/xpath/node-test-pi.js.map +0 -1
- package/xpath/node-test-text.d.ts +0 -5
- package/xpath/node-test-text.js.map +0 -1
package/umd/xpath/xpath.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ExprContext } from '
|
|
1
|
+
import { ExprContext } from '../xslt/expr-context';
|
|
2
2
|
import { BinaryExpr, FunctionCallExpr, LiteralExpr, LocationExpr, NumberExpr, PathExpr, PredicateExpr, StepExpr, TokenExpr, UnaryMinusExpr, UnionExpr, VariableExpr } from './expressions';
|
|
3
3
|
import { Expression } from './expressions/expression';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { NodeTestElementOrAttribute } from './node-
|
|
7
|
-
import { NodeTestName } from './node-test-name';
|
|
8
|
-
import { NodeTestNC } from './node-test-nc';
|
|
9
|
-
import { NodeTestPI } from './node-test-pi';
|
|
10
|
-
import { NodeTestText } from './node-test-text';
|
|
4
|
+
import { XPathTokenRule } from './xpath-token-rule';
|
|
5
|
+
import { XNode } from '../dom';
|
|
6
|
+
import { NodeTestAny, NodeTestElementOrAttribute, NodeTestNC, NodeTestName, NodeTestText, NodeTestComment, NodeTestPI } from './node-tests';
|
|
11
7
|
export declare class XPath {
|
|
12
8
|
xPathParseCache: any;
|
|
13
9
|
xPathRules: any[];
|
|
10
|
+
xPathLog: (message: string) => void;
|
|
11
|
+
lexerCount: number;
|
|
12
|
+
parseCount: number;
|
|
13
|
+
reduceCount: number;
|
|
14
14
|
xPathGrammarRules: ((number | {
|
|
15
15
|
label: string;
|
|
16
16
|
key: any;
|
|
17
|
-
} | {
|
|
17
|
+
} | (XPathTokenRule | {
|
|
18
18
|
label: string;
|
|
19
19
|
key: any;
|
|
20
|
-
}[] | ((rel: any, slash: any, step: any) => any))[] | (number | {
|
|
20
|
+
})[] | ((rel: any, slash: any, step: any) => any))[] | (number | {
|
|
21
21
|
label: string;
|
|
22
22
|
key: any;
|
|
23
23
|
} | {
|
|
@@ -36,10 +36,10 @@ export declare class XPath {
|
|
|
36
36
|
}[] | ((expr: any, predicates: any) => any))[] | (number | boolean | {
|
|
37
37
|
label: string;
|
|
38
38
|
key: any;
|
|
39
|
-
} | {
|
|
39
|
+
} | (XPathTokenRule | {
|
|
40
40
|
label: string;
|
|
41
41
|
key: any;
|
|
42
|
-
}[] | ((expr1: any, op: any, expr2: any) => BinaryExpr))[])[];
|
|
42
|
+
})[] | ((expr1: any, op: any, expr2: any) => BinaryExpr))[])[];
|
|
43
43
|
constructor();
|
|
44
44
|
makeTokenExpr(m: any): TokenExpr;
|
|
45
45
|
passExpr(e: any): any;
|
|
@@ -101,20 +101,62 @@ export declare class XPath {
|
|
|
101
101
|
*/
|
|
102
102
|
xPathExtractTagNameFromNodeTest(nodeTest: any, ignoreNonElementNodesForNTA: any): string;
|
|
103
103
|
xPathMatchStack(stack: any, pattern: any): any;
|
|
104
|
+
/**
|
|
105
|
+
* Finds the best rule for the XPath expression provided.
|
|
106
|
+
* @param expression The XPath string expression.
|
|
107
|
+
* @param previous The previous matched XPath rule.
|
|
108
|
+
* @returns The found rule and the corresponding match.
|
|
109
|
+
*/
|
|
110
|
+
private findXPathRuleForExpression;
|
|
111
|
+
/**
|
|
112
|
+
* Initialization for `xPathParse`.
|
|
113
|
+
* @see xPathParse
|
|
114
|
+
*/
|
|
115
|
+
private xPathParseInit;
|
|
104
116
|
/**
|
|
105
117
|
* The entry point for the parser.
|
|
106
118
|
* @param expression a string that contains an XPath expression.
|
|
107
119
|
* @param axis The XPath axis. Used when the match does not start with the parent.
|
|
108
|
-
* @param xPathLog TODO
|
|
109
120
|
* @returns an expression object that can be evaluated with an
|
|
110
121
|
* expression context.
|
|
111
122
|
*/
|
|
112
|
-
xPathParse(expression: string, axis?: string
|
|
113
|
-
|
|
114
|
-
|
|
123
|
+
xPathParse(expression: string, axis?: string): any;
|
|
124
|
+
private findGrammarRuleCandidate;
|
|
125
|
+
/**
|
|
126
|
+
* DGF xPathReduce is where the magic happens in this parser.
|
|
127
|
+
* Check `src\xpath\xpath-grammar-rules.ts` to find the table of
|
|
128
|
+
* grammatical rules and precedence numbers, "The productions of the grammar".
|
|
129
|
+
*
|
|
130
|
+
* The idea here is that we want to take a stack of tokens and apply
|
|
131
|
+
* grammatical rules to them, "reducing" them to higher-level
|
|
132
|
+
* tokens. Ultimately, any valid XPath should reduce to exactly one
|
|
133
|
+
* "Expr" token.
|
|
134
|
+
|
|
135
|
+
* Reduce too early or too late and you'll have two tokens that can't reduce
|
|
136
|
+
* to single Expr. For example, you may hastily reduce a qname that
|
|
137
|
+
* should name a function, incorrectly treating it as a tag name.
|
|
138
|
+
* Or you may reduce too late, accidentally reducing the last part of the
|
|
139
|
+
* XPath into a top-level "Expr" that won't reduce with earlier parts of
|
|
140
|
+
* the XPath.
|
|
141
|
+
*
|
|
142
|
+
* A "candidate" is a grammatical rule candidate, with a given precedence
|
|
143
|
+
* number. "ahead" is the upcoming token, which also has a precedence
|
|
144
|
+
* number. If the token has a higher precedence number than
|
|
145
|
+
* the rule candidate, we'll "shift" the token onto the token stack,
|
|
146
|
+
* instead of immediately applying the rule candidate.
|
|
147
|
+
*
|
|
148
|
+
* Some tokens have left associativity, in which case we shift when they
|
|
149
|
+
* have LOWER precedence than the candidate.
|
|
150
|
+
*/
|
|
151
|
+
private xPathReduce;
|
|
152
|
+
/**
|
|
153
|
+
* Utility function to sort a list of nodes. Used by xsltSort().
|
|
154
|
+
* @param context The Expression Context.
|
|
155
|
+
* @param sort TODO
|
|
156
|
+
*/
|
|
115
157
|
xPathSort(context: ExprContext, sort: any[]): void;
|
|
116
158
|
xPathSortByKey(v1: any, v2: any): number;
|
|
117
|
-
xPathStep(nodes: any[], steps: any[], step: any, input:
|
|
159
|
+
xPathStep(nodes: any[], steps: any[], step: any, input: XNode, context: ExprContext): void;
|
|
118
160
|
xPathGrammarPrecedence(frame: any): number;
|
|
119
161
|
xPathTokenPrecedence(tag: any): any;
|
|
120
162
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { XNode } from '../dom';
|
|
2
|
+
import { XsltDecimalFormatSettings } from './xslt-decimal-format-settings';
|
|
2
3
|
/** XPath expression evaluation context. An XPath context consists of a
|
|
3
4
|
* DOM node, a list of DOM nodes that contains this node, a number
|
|
4
5
|
* that represents the position of the single node in the list, and a
|
|
@@ -41,12 +42,16 @@ export declare class ExprContext {
|
|
|
41
42
|
variables: {
|
|
42
43
|
[name: string]: any;
|
|
43
44
|
};
|
|
45
|
+
knownNamespaces: {
|
|
46
|
+
[alias: string]: string;
|
|
47
|
+
};
|
|
44
48
|
caseInsensitive: any;
|
|
45
49
|
ignoreAttributesWithoutValue: any;
|
|
46
50
|
returnOnFirstMatch: any;
|
|
47
51
|
ignoreNonElementNodesForNTA: any;
|
|
48
52
|
parent: ExprContext;
|
|
49
53
|
root: XNode;
|
|
54
|
+
decimalFormatSettings: XsltDecimalFormatSettings;
|
|
50
55
|
inApplyTemplates: boolean;
|
|
51
56
|
baseTemplateMatched: boolean;
|
|
52
57
|
/**
|
|
@@ -70,7 +75,11 @@ export declare class ExprContext {
|
|
|
70
75
|
* @param opt_returnOnFirstMatch TODO
|
|
71
76
|
* @param opt_ignoreNonElementNodesForNTA TODO
|
|
72
77
|
*/
|
|
73
|
-
constructor(nodeList: XNode[], outputNodeList: XNode[], opt_position?: number, opt_outputPosition?: number, opt_outputDepth?: number,
|
|
78
|
+
constructor(nodeList: XNode[], outputNodeList: XNode[], opt_position?: number, opt_outputPosition?: number, opt_outputDepth?: number, opt_decimalFormatSettings?: XsltDecimalFormatSettings, opt_variables?: {
|
|
79
|
+
[name: string]: any;
|
|
80
|
+
}, opt_knownNamespaces?: {
|
|
81
|
+
[alias: string]: string;
|
|
82
|
+
}, opt_parent?: ExprContext, opt_caseInsensitive?: any, opt_ignoreAttributesWithoutValue?: any, opt_returnOnFirstMatch?: any, opt_ignoreNonElementNodesForNTA?: any);
|
|
74
83
|
/**
|
|
75
84
|
* clone() -- creates a new context with the current context as
|
|
76
85
|
* parent. If passed as argument to clone(), the new context has a
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* According to https://www.w3schools.com/xml/ref_xsl_el_decimal-format.asp:
|
|
3
|
+
*
|
|
4
|
+
* @property {string} name: Optional. Specifies a name for this format.
|
|
5
|
+
* @property {string} decimalSeparator: Optional. Specifies the decimal point character. Default is ".".
|
|
6
|
+
* @property {string} groupingSeparator: Optional. Specifies the thousands separator character. Default is ",".
|
|
7
|
+
* @property {string} infinity: Optional. Specifies the string used to represent infinity. Default is "Infinity".
|
|
8
|
+
* @property {string} minusSign: Optional. Specifies the character to represent negative numbers. Default is "-".
|
|
9
|
+
* @property {string} naN: Optional. Specifies the string used when the value is not a number". Default is "NaN".
|
|
10
|
+
* @property {string} percent: Optional. Specifies the percentage sign character. Default is "%".
|
|
11
|
+
* @property {string} perMille: Optional. Specifies the per thousand sign character. Default is "‰".
|
|
12
|
+
* @property {string} zeroDigit: Optional. Specifies the digit zero character. Default is "0".
|
|
13
|
+
* @property {string} digit: Optional. Specifies the character used to indicate a place where a digit is required. Default is #.
|
|
14
|
+
* @property {string} patternSeparator: Optional. Specifies the character used to separate positive and negative subpatterns in a format pattern. Default is ";".
|
|
15
|
+
*/
|
|
16
|
+
export type XsltDecimalFormatSettings = {
|
|
17
|
+
name?: string;
|
|
18
|
+
decimalSeparator: string;
|
|
19
|
+
groupingSeparator: string;
|
|
20
|
+
infinity: string;
|
|
21
|
+
minusSign: string;
|
|
22
|
+
naN: string;
|
|
23
|
+
percent: string;
|
|
24
|
+
perMille: string;
|
|
25
|
+
zeroDigit: string;
|
|
26
|
+
digit: string;
|
|
27
|
+
patternSeparator: string;
|
|
28
|
+
};
|
package/umd/xslt/xslt.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { XDocument, XNode } from '../dom';
|
|
2
2
|
import { ExprContext, XPath } from '../xpath';
|
|
3
3
|
import { XsltOptions } from './xslt-options';
|
|
4
|
+
import { XsltDecimalFormatSettings } from './xslt-decimal-format-settings';
|
|
4
5
|
/**
|
|
5
6
|
* The main class for XSL-T processing. The implementation is NOT
|
|
6
7
|
* complete; some xsl element are left out.
|
|
@@ -28,9 +29,11 @@ import { XsltOptions } from './xslt-options';
|
|
|
28
29
|
export declare class Xslt {
|
|
29
30
|
xPath: XPath;
|
|
30
31
|
options: XsltOptions;
|
|
32
|
+
decimalFormatSettings: XsltDecimalFormatSettings;
|
|
31
33
|
outputDocument: XDocument;
|
|
32
34
|
outputMethod: string;
|
|
33
35
|
outputOmitXmlDeclaration: string;
|
|
36
|
+
version: string;
|
|
34
37
|
constructor(options?: Partial<XsltOptions>);
|
|
35
38
|
/**
|
|
36
39
|
* The exported entry point of the XSL-T processor.
|
|
@@ -46,14 +49,37 @@ export declare class Xslt {
|
|
|
46
49
|
* @param output the root of the generated output, as DOM node.
|
|
47
50
|
*/
|
|
48
51
|
protected xsltProcessContext(context: ExprContext, template: XNode, output: XNode): void;
|
|
52
|
+
/**
|
|
53
|
+
* Implements xsl:choose and its child nodes xsl:when and
|
|
54
|
+
* xsl:otherwise.
|
|
55
|
+
* @param input The Expression Context.
|
|
56
|
+
* @param template The template.
|
|
57
|
+
* @param output The output.
|
|
58
|
+
*/
|
|
59
|
+
protected xsltChoose(input: ExprContext, template: any, output: any): void;
|
|
49
60
|
/**
|
|
50
61
|
* Implements `xsl:copy` for all node types.
|
|
51
|
-
* @param {XNode} destination the node being copied to, part of output document
|
|
52
|
-
* @param {XNode} source the node being copied, part in input document
|
|
53
|
-
* @
|
|
54
|
-
|
|
62
|
+
* @param {XNode} destination the node being copied to, part of output document.
|
|
63
|
+
* @param {XNode} source the node being copied, part in input document.
|
|
64
|
+
* @returns {XNode|null} If an element node was created, the element node. Otherwise, null.
|
|
65
|
+
*/
|
|
66
|
+
protected xsltCopy(destination: XNode, source: XNode): XNode;
|
|
67
|
+
/**
|
|
68
|
+
* Implements `xsl:copy-of` for node-set values of the select
|
|
69
|
+
* expression. Recurses down the source node tree, which is part of
|
|
70
|
+
* the input document.
|
|
71
|
+
* @param {XNode} dst the node being copied to, part of output document.
|
|
72
|
+
* @param {XNode} src the node being copied, part in input document.
|
|
55
73
|
*/
|
|
56
|
-
protected
|
|
74
|
+
protected xsltCopyOf(dst: XNode, src: XNode): void;
|
|
75
|
+
/**
|
|
76
|
+
* Implements `xsl:for-each`.
|
|
77
|
+
* @param input The Expression Context.
|
|
78
|
+
* @param template The template.
|
|
79
|
+
* @param output The output.
|
|
80
|
+
*/
|
|
81
|
+
protected xsltForEach(context: ExprContext, template: XNode, output: XNode): void;
|
|
82
|
+
protected groupBy(xs: any, key: any): any;
|
|
57
83
|
/**
|
|
58
84
|
* Orders the current node list in the input context according to the
|
|
59
85
|
* sort order specified by xsl:sort child nodes of the current
|
|
@@ -64,6 +90,14 @@ export declare class Xslt {
|
|
|
64
90
|
* @todo case-order is not implemented.
|
|
65
91
|
*/
|
|
66
92
|
protected xsltSort(context: ExprContext, template: XNode): void;
|
|
93
|
+
/**
|
|
94
|
+
* Implements `<xsl:stylesheet>` and `<xsl:transform>`, and its corresponding
|
|
95
|
+
* validations.
|
|
96
|
+
* @param template The `<xsl:stylesheet>` or `<xsl:transform>` node.
|
|
97
|
+
* @param context The Expression Context.
|
|
98
|
+
* @param output The output XML.
|
|
99
|
+
*/
|
|
100
|
+
protected xsltTransformOrStylesheet(template: XNode, context: ExprContext, output: XNode): void;
|
|
67
101
|
/**
|
|
68
102
|
* Evaluates a variable or parameter and set it in the current input
|
|
69
103
|
* context. Implements `xsl:variable`, `xsl:param`, and `xsl:with-param`.
|
|
@@ -76,22 +110,6 @@ export declare class Xslt {
|
|
|
76
110
|
* value. `xsl:variable` and `xsl:with-param` override; `xsl:param` doesn't.
|
|
77
111
|
*/
|
|
78
112
|
protected xsltVariable(input: ExprContext, template: any, override: boolean): void;
|
|
79
|
-
/**
|
|
80
|
-
* Implements xsl:choose and its child nodes xsl:when and
|
|
81
|
-
* xsl:otherwise.
|
|
82
|
-
* @param input The Expression Context.
|
|
83
|
-
* @param template The template.
|
|
84
|
-
* @param output The output.
|
|
85
|
-
*/
|
|
86
|
-
protected xsltChoose(input: ExprContext, template: any, output: any): void;
|
|
87
|
-
/**
|
|
88
|
-
* Implements `xsl:for-each`.
|
|
89
|
-
* @param input The Expression Context.
|
|
90
|
-
* @param template The template.
|
|
91
|
-
* @param output The output.
|
|
92
|
-
*/
|
|
93
|
-
protected xsltForEach(context: ExprContext, template: XNode, output: XNode): void;
|
|
94
|
-
protected groupBy(xs: any, key: any): any;
|
|
95
113
|
/**
|
|
96
114
|
* Traverses the template node tree. Calls the main processing
|
|
97
115
|
* function with the current input context for every child node of the
|
|
@@ -131,15 +149,6 @@ export declare class Xslt {
|
|
|
131
149
|
* @returns TODO
|
|
132
150
|
*/
|
|
133
151
|
protected xsltAttributeValue(value: any, context: ExprContext): any;
|
|
134
|
-
/**
|
|
135
|
-
* Implements xsl:copy-of for node-set values of the select
|
|
136
|
-
* expression. Recurses down the source node tree, which is part of
|
|
137
|
-
* the input document.
|
|
138
|
-
* @param {XNode} dst the node being copied to, part of output document
|
|
139
|
-
* @param {XNode} src the node being copied, part in input document
|
|
140
|
-
* @param {XDocument} dstDocument dstDocument
|
|
141
|
-
*/
|
|
142
|
-
protected xsltCopyOf(dst: any, src: any, dstDocument: any): void;
|
|
143
152
|
/**
|
|
144
153
|
* Evaluates an XPath expression in the current input context as a
|
|
145
154
|
* match.
|