xslt-processor 3.0.0 → 3.0.2
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/README.md +2 -2
- package/constants.d.ts +12 -12
- package/constants.js +16 -16
- package/dom/functions.d.ts +14 -14
- package/dom/functions.js +56 -57
- package/dom/functions.js.map +1 -1
- package/dom/index.d.ts +6 -6
- package/dom/index.js +22 -22
- package/dom/util.d.ts +7 -7
- package/dom/util.js +42 -43
- package/dom/util.js.map +1 -1
- package/dom/xdocument.d.ts +16 -16
- package/dom/xdocument.js +73 -74
- package/dom/xdocument.js.map +1 -1
- package/dom/xml-functions.d.ts +58 -58
- package/dom/xml-functions.js +369 -370
- package/dom/xml-functions.js.map +1 -1
- package/dom/xml-output-options.d.ts +6 -6
- package/dom/xml-output-options.js +2 -2
- package/dom/xml-parser.d.ts +47 -47
- package/dom/xml-parser.js +307 -307
- package/dom/xml-parser.js.map +1 -1
- package/dom/xmltoken.d.ts +12 -12
- package/dom/xmltoken.js +101 -101
- package/dom/xnode.d.ts +73 -73
- package/dom/xnode.js +450 -450
- package/dom/xnode.js.map +1 -1
- package/index.d.ts +4 -4
- package/index.js +12 -12
- package/package.json +11 -11
- package/test-without-jest.d.ts +1 -0
- package/test-without-jest.js +63 -0
- package/test-without-jest.js.map +1 -0
- package/umd/constants.d.ts +12 -12
- package/umd/dom/functions.d.ts +14 -14
- package/umd/dom/index.d.ts +6 -6
- package/umd/dom/util.d.ts +7 -7
- package/umd/dom/xdocument.d.ts +16 -16
- package/umd/dom/xml-functions.d.ts +58 -58
- package/umd/dom/xml-output-options.d.ts +6 -6
- package/umd/dom/xml-parser.d.ts +47 -47
- package/umd/dom/xmltoken.d.ts +12 -12
- package/umd/dom/xnode.d.ts +73 -73
- package/umd/index.d.ts +4 -4
- package/umd/test-without-jest.d.ts +1 -0
- package/umd/xpath/common-function.d.ts +8 -8
- package/umd/xpath/expr-context.d.ts +111 -111
- package/umd/xpath/expressions/binary-expr.d.ts +11 -11
- package/umd/xpath/expressions/expression.d.ts +4 -4
- package/umd/xpath/expressions/filter-expr.d.ts +9 -9
- package/umd/xpath/expressions/function-call-expr.d.ts +12 -12
- package/umd/xpath/expressions/index.d.ts +13 -13
- package/umd/xpath/expressions/literal-expr.d.ts +7 -7
- package/umd/xpath/expressions/location-expr.d.ts +15 -15
- package/umd/xpath/expressions/number-expr.d.ts +7 -7
- package/umd/xpath/expressions/path-expr.d.ts +9 -9
- package/umd/xpath/expressions/predicate-expr.d.ts +8 -8
- package/umd/xpath/expressions/step-expr.d.ts +25 -25
- package/umd/xpath/expressions/token-expr.d.ts +7 -7
- package/umd/xpath/expressions/unary-minus-expr.d.ts +8 -8
- package/umd/xpath/expressions/union-expr.d.ts +9 -9
- package/umd/xpath/expressions/variable-expr.d.ts +7 -7
- package/umd/xpath/functions/index.d.ts +2 -2
- package/umd/xpath/functions/internal-functions.d.ts +2 -2
- package/umd/xpath/functions/non-standard.d.ts +12 -12
- package/umd/xpath/functions/standard-20.d.ts +5 -5
- package/umd/xpath/functions/standard.d.ts +40 -40
- package/umd/xpath/grammar-rule-candidate.d.ts +8 -8
- package/umd/xpath/index.d.ts +3 -3
- package/umd/xpath/match-resolver.d.ts +55 -55
- package/umd/xpath/node-tests/index.d.ts +8 -8
- package/umd/xpath/node-tests/node-test-any.d.ts +6 -6
- package/umd/xpath/node-tests/node-test-comment.d.ts +6 -6
- package/umd/xpath/node-tests/node-test-element-or-attribute.d.ts +6 -6
- package/umd/xpath/node-tests/node-test-name.d.ts +10 -10
- package/umd/xpath/node-tests/node-test-nc.d.ts +9 -9
- package/umd/xpath/node-tests/node-test-pi.d.ts +8 -8
- package/umd/xpath/node-tests/node-test-text.d.ts +6 -6
- package/umd/xpath/node-tests/node-test.d.ts +5 -5
- package/umd/xpath/tokens.d.ts +62 -62
- package/umd/xpath/values/boolean-value.d.ts +11 -11
- package/umd/xpath/values/index.d.ts +5 -5
- package/umd/xpath/values/node-set-value.d.ts +11 -11
- package/umd/xpath/values/node-value.d.ts +7 -7
- package/umd/xpath/values/number-value.d.ts +11 -11
- package/umd/xpath/values/string-value.d.ts +11 -11
- package/umd/xpath/xpath-grammar-rules.d.ts +68 -68
- package/umd/xpath/xpath-token-rule.d.ts +7 -7
- package/umd/xpath/xpath.d.ts +174 -170
- package/umd/xpathdebug.d.ts +2 -2
- package/umd/xslt/index.d.ts +3 -3
- package/umd/xslt/xslt-decimal-format-settings.d.ts +28 -28
- package/umd/xslt/xslt-options.d.ts +7 -7
- package/umd/xslt/xslt-parameter.d.ts +5 -5
- package/umd/xslt/xslt.d.ts +207 -190
- package/umd/xslt-processor.js +1 -15
- package/umd/xslt-processor.js.map +1 -1
- package/xpath/common-function.d.ts +8 -8
- package/xpath/common-function.js +31 -32
- package/xpath/common-function.js.map +1 -1
- package/xpath/expr-context.d.ts +111 -111
- package/xpath/expr-context.js +189 -189
- package/xpath/expr-context.js.map +1 -1
- package/xpath/expressions/binary-expr.d.ts +11 -11
- package/xpath/expressions/binary-expr.js +165 -165
- package/xpath/expressions/binary-expr.js.map +1 -1
- package/xpath/expressions/expression.d.ts +4 -4
- package/xpath/expressions/expression.js +9 -9
- package/xpath/expressions/filter-expr.d.ts +9 -9
- package/xpath/expressions/filter-expr.js +52 -52
- package/xpath/expressions/filter-expr.js.map +1 -1
- package/xpath/expressions/function-call-expr.d.ts +12 -12
- package/xpath/expressions/function-call-expr.js +95 -95
- package/xpath/expressions/function-call-expr.js.map +1 -1
- package/xpath/expressions/index.d.ts +13 -13
- package/xpath/expressions/index.js +29 -29
- package/xpath/expressions/literal-expr.d.ts +7 -7
- package/xpath/expressions/literal-expr.js +33 -33
- package/xpath/expressions/literal-expr.js.map +1 -1
- package/xpath/expressions/location-expr.d.ts +15 -15
- package/xpath/expressions/location-expr.js +98 -98
- package/xpath/expressions/location-expr.js.map +1 -1
- package/xpath/expressions/number-expr.d.ts +7 -7
- package/xpath/expressions/number-expr.js +33 -33
- package/xpath/expressions/number-expr.js.map +1 -1
- package/xpath/expressions/path-expr.d.ts +9 -9
- package/xpath/expressions/path-expr.js +51 -51
- package/xpath/expressions/path-expr.js.map +1 -1
- package/xpath/expressions/predicate-expr.d.ts +8 -8
- package/xpath/expressions/predicate-expr.js +40 -40
- package/xpath/expressions/predicate-expr.js.map +1 -1
- package/xpath/expressions/step-expr.d.ts +25 -25
- package/xpath/expressions/step-expr.js +280 -280
- package/xpath/expressions/step-expr.js.map +1 -1
- package/xpath/expressions/token-expr.d.ts +7 -7
- package/xpath/expressions/token-expr.js +33 -33
- package/xpath/expressions/token-expr.js.map +1 -1
- package/xpath/expressions/unary-minus-expr.d.ts +8 -8
- package/xpath/expressions/unary-minus-expr.js +33 -33
- package/xpath/expressions/unary-minus-expr.js.map +1 -1
- package/xpath/expressions/union-expr.d.ts +9 -9
- package/xpath/expressions/union-expr.js +50 -50
- package/xpath/expressions/union-expr.js.map +1 -1
- package/xpath/expressions/variable-expr.d.ts +7 -7
- package/xpath/expressions/variable-expr.js +32 -32
- package/xpath/expressions/variable-expr.js.map +1 -1
- package/xpath/functions/index.d.ts +2 -2
- package/xpath/functions/index.js +18 -18
- package/xpath/functions/internal-functions.d.ts +2 -2
- package/xpath/functions/internal-functions.js +21 -22
- package/xpath/functions/internal-functions.js.map +1 -1
- package/xpath/functions/non-standard.d.ts +12 -12
- package/xpath/functions/non-standard.js +44 -45
- package/xpath/functions/non-standard.js.map +1 -1
- package/xpath/functions/standard-20.d.ts +5 -5
- package/xpath/functions/standard-20.js +25 -26
- package/xpath/functions/standard-20.js.map +1 -1
- package/xpath/functions/standard.d.ts +40 -40
- package/xpath/functions/standard.js +441 -442
- package/xpath/functions/standard.js.map +1 -1
- package/xpath/grammar-rule-candidate.d.ts +8 -8
- package/xpath/grammar-rule-candidate.js +2 -2
- package/xpath/index.d.ts +3 -3
- package/xpath/index.js +19 -19
- package/xpath/match-resolver.d.ts +55 -55
- package/xpath/match-resolver.js +136 -136
- package/xpath/match-resolver.js.map +1 -1
- package/xpath/node-tests/index.d.ts +8 -8
- package/xpath/node-tests/index.js +17 -17
- package/xpath/node-tests/node-test-any.d.ts +6 -6
- package/xpath/node-tests/node-test-any.js +14 -14
- package/xpath/node-tests/node-test-comment.d.ts +6 -6
- package/xpath/node-tests/node-test-comment.js +14 -14
- package/xpath/node-tests/node-test-element-or-attribute.d.ts +6 -6
- package/xpath/node-tests/node-test-element-or-attribute.js +15 -15
- package/xpath/node-tests/node-test-name.d.ts +10 -10
- package/xpath/node-tests/node-test-name.js +38 -38
- package/xpath/node-tests/node-test-name.js.map +1 -1
- package/xpath/node-tests/node-test-nc.d.ts +9 -9
- package/xpath/node-tests/node-test-nc.js +16 -16
- package/xpath/node-tests/node-test-pi.d.ts +8 -8
- package/xpath/node-tests/node-test-pi.js +16 -16
- package/xpath/node-tests/node-test-pi.js.map +1 -1
- package/xpath/node-tests/node-test-text.d.ts +6 -6
- package/xpath/node-tests/node-test-text.js +14 -14
- package/xpath/node-tests/node-test.d.ts +5 -5
- package/xpath/node-tests/node-test.js +2 -2
- package/xpath/tokens.d.ts +62 -62
- package/xpath/tokens.js +300 -300
- package/xpath/tokens.js.map +1 -1
- package/xpath/values/boolean-value.d.ts +11 -11
- package/xpath/values/boolean-value.js +23 -23
- package/xpath/values/index.d.ts +5 -5
- package/xpath/values/index.js +46 -46
- package/xpath/values/node-set-value.d.ts +11 -11
- package/xpath/values/node-set-value.js +27 -27
- package/xpath/values/node-set-value.js.map +1 -1
- package/xpath/values/node-value.d.ts +7 -7
- package/xpath/values/node-value.js +2 -2
- package/xpath/values/number-value.d.ts +11 -11
- package/xpath/values/number-value.js +23 -23
- package/xpath/values/string-value.d.ts +11 -11
- package/xpath/values/string-value.js +23 -23
- package/xpath/xpath-grammar-rules.d.ts +68 -68
- package/xpath/xpath-grammar-rules.js +74 -74
- package/xpath/xpath-token-rule.d.ts +7 -7
- package/xpath/xpath-token-rule.js +2 -2
- package/xpath/xpath.d.ts +174 -170
- package/xpath/xpath.js +911 -909
- package/xpath/xpath.js.map +1 -1
- package/xpathdebug.d.ts +2 -2
- package/xpathdebug.js +187 -187
- package/xpathdebug.js.map +1 -1
- package/xslt/index.d.ts +3 -3
- package/xslt/index.js +19 -19
- package/xslt/xslt-decimal-format-settings.d.ts +28 -28
- package/xslt/xslt-decimal-format-settings.js +2 -2
- package/xslt/xslt-options.d.ts +7 -7
- package/xslt/xslt-options.js +2 -2
- package/xslt/xslt-parameter.d.ts +5 -5
- package/xslt/xslt-parameter.js +2 -2
- package/xslt/xslt.d.ts +207 -190
- package/xslt/xslt.js +1135 -1079
- package/xslt/xslt.js.map +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BooleanValue = void 0;
|
|
4
|
-
var BooleanValue = /** @class */ (function () {
|
|
5
|
-
function BooleanValue(value) {
|
|
6
|
-
this.value = value;
|
|
7
|
-
this.type = 'boolean';
|
|
8
|
-
}
|
|
9
|
-
BooleanValue.prototype.stringValue = function () {
|
|
10
|
-
return "".concat(this.value);
|
|
11
|
-
};
|
|
12
|
-
BooleanValue.prototype.booleanValue = function () {
|
|
13
|
-
return this.value;
|
|
14
|
-
};
|
|
15
|
-
BooleanValue.prototype.numberValue = function () {
|
|
16
|
-
return this.value ? 1 : 0;
|
|
17
|
-
};
|
|
18
|
-
BooleanValue.prototype.nodeSetValue = function () {
|
|
19
|
-
throw this;
|
|
20
|
-
};
|
|
21
|
-
return BooleanValue;
|
|
22
|
-
}());
|
|
23
|
-
exports.BooleanValue = BooleanValue;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BooleanValue = void 0;
|
|
4
|
+
var BooleanValue = /** @class */ (function () {
|
|
5
|
+
function BooleanValue(value) {
|
|
6
|
+
this.value = value;
|
|
7
|
+
this.type = 'boolean';
|
|
8
|
+
}
|
|
9
|
+
BooleanValue.prototype.stringValue = function () {
|
|
10
|
+
return "".concat(this.value);
|
|
11
|
+
};
|
|
12
|
+
BooleanValue.prototype.booleanValue = function () {
|
|
13
|
+
return this.value;
|
|
14
|
+
};
|
|
15
|
+
BooleanValue.prototype.numberValue = function () {
|
|
16
|
+
return this.value ? 1 : 0;
|
|
17
|
+
};
|
|
18
|
+
BooleanValue.prototype.nodeSetValue = function () {
|
|
19
|
+
throw this;
|
|
20
|
+
};
|
|
21
|
+
return BooleanValue;
|
|
22
|
+
}());
|
|
23
|
+
exports.BooleanValue = BooleanValue;
|
|
24
24
|
//# sourceMappingURL=boolean-value.js.map
|
package/xpath/values/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './boolean-value';
|
|
2
|
-
export * from './node-set-value';
|
|
3
|
-
export * from './node-value';
|
|
4
|
-
export * from './number-value';
|
|
5
|
-
export * from './string-value';
|
|
1
|
+
export * from './boolean-value';
|
|
2
|
+
export * from './node-set-value';
|
|
3
|
+
export * from './node-value';
|
|
4
|
+
export * from './number-value';
|
|
5
|
+
export * from './string-value';
|
package/xpath/values/index.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// XPath expression values. They are what XPath expressions evaluate
|
|
3
|
-
// to. Strangely, the different value types are not specified in the
|
|
4
|
-
// XPath syntax, but only in the semantics, so they don't show up as
|
|
5
|
-
// nonterminals in the grammar. Yet, some expressions are required to
|
|
6
|
-
// evaluate to particular types, and not every type can be coerced
|
|
7
|
-
// into every other type. Although the types of XPath values are
|
|
8
|
-
// similar to the types present in JavaScript, the type coercion rules
|
|
9
|
-
// are a bit peculiar, so we explicitly model XPath types instead of
|
|
10
|
-
// mapping them onto JavaScript types. (See XPath spec.)
|
|
11
|
-
//
|
|
12
|
-
// The four types are:
|
|
13
|
-
//
|
|
14
|
-
// - `StringValue`
|
|
15
|
-
// - `NumberValue`
|
|
16
|
-
// - `BooleanValue`
|
|
17
|
-
// - `NodeSetValue`
|
|
18
|
-
//
|
|
19
|
-
// The common interface of the value classes consists of methods that
|
|
20
|
-
// implement the XPath type coercion rules:
|
|
21
|
-
//
|
|
22
|
-
// - `stringValue()` -- returns the value as a JavaScript String;
|
|
23
|
-
// - `numberValue()` -- returns the value as a JavaScript Number;
|
|
24
|
-
// - `booleanValue()` -- returns the value as a JavaScript Boolean;
|
|
25
|
-
// - `nodeSetValue()` -- returns the value as a JavaScript Array of DOM
|
|
26
|
-
// Node objects.
|
|
27
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
28
|
-
if (k2 === undefined) k2 = k;
|
|
29
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
30
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
31
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
32
|
-
}
|
|
33
|
-
Object.defineProperty(o, k2, desc);
|
|
34
|
-
}) : (function(o, m, k, k2) {
|
|
35
|
-
if (k2 === undefined) k2 = k;
|
|
36
|
-
o[k2] = m[k];
|
|
37
|
-
}));
|
|
38
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
39
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
40
|
-
};
|
|
41
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
__exportStar(require("./boolean-value"), exports);
|
|
43
|
-
__exportStar(require("./node-set-value"), exports);
|
|
44
|
-
__exportStar(require("./node-value"), exports);
|
|
45
|
-
__exportStar(require("./number-value"), exports);
|
|
46
|
-
__exportStar(require("./string-value"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
// XPath expression values. They are what XPath expressions evaluate
|
|
3
|
+
// to. Strangely, the different value types are not specified in the
|
|
4
|
+
// XPath syntax, but only in the semantics, so they don't show up as
|
|
5
|
+
// nonterminals in the grammar. Yet, some expressions are required to
|
|
6
|
+
// evaluate to particular types, and not every type can be coerced
|
|
7
|
+
// into every other type. Although the types of XPath values are
|
|
8
|
+
// similar to the types present in JavaScript, the type coercion rules
|
|
9
|
+
// are a bit peculiar, so we explicitly model XPath types instead of
|
|
10
|
+
// mapping them onto JavaScript types. (See XPath spec.)
|
|
11
|
+
//
|
|
12
|
+
// The four types are:
|
|
13
|
+
//
|
|
14
|
+
// - `StringValue`
|
|
15
|
+
// - `NumberValue`
|
|
16
|
+
// - `BooleanValue`
|
|
17
|
+
// - `NodeSetValue`
|
|
18
|
+
//
|
|
19
|
+
// The common interface of the value classes consists of methods that
|
|
20
|
+
// implement the XPath type coercion rules:
|
|
21
|
+
//
|
|
22
|
+
// - `stringValue()` -- returns the value as a JavaScript String;
|
|
23
|
+
// - `numberValue()` -- returns the value as a JavaScript Number;
|
|
24
|
+
// - `booleanValue()` -- returns the value as a JavaScript Boolean;
|
|
25
|
+
// - `nodeSetValue()` -- returns the value as a JavaScript Array of DOM
|
|
26
|
+
// Node objects.
|
|
27
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
30
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
31
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
32
|
+
}
|
|
33
|
+
Object.defineProperty(o, k2, desc);
|
|
34
|
+
}) : (function(o, m, k, k2) {
|
|
35
|
+
if (k2 === undefined) k2 = k;
|
|
36
|
+
o[k2] = m[k];
|
|
37
|
+
}));
|
|
38
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
39
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
__exportStar(require("./boolean-value"), exports);
|
|
43
|
+
__exportStar(require("./node-set-value"), exports);
|
|
44
|
+
__exportStar(require("./node-value"), exports);
|
|
45
|
+
__exportStar(require("./number-value"), exports);
|
|
46
|
+
__exportStar(require("./string-value"), exports);
|
|
47
47
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { XNode } from "../../dom";
|
|
2
|
-
import { NodeValue } from "./node-value";
|
|
3
|
-
export declare class NodeSetValue implements NodeValue {
|
|
4
|
-
value: XNode[];
|
|
5
|
-
type: string;
|
|
6
|
-
constructor(value: any);
|
|
7
|
-
stringValue(): string;
|
|
8
|
-
booleanValue(): boolean;
|
|
9
|
-
numberValue(): number;
|
|
10
|
-
nodeSetValue(): XNode[];
|
|
11
|
-
}
|
|
1
|
+
import { XNode } from "../../dom";
|
|
2
|
+
import { NodeValue } from "./node-value";
|
|
3
|
+
export declare class NodeSetValue implements NodeValue {
|
|
4
|
+
value: XNode[];
|
|
5
|
+
type: string;
|
|
6
|
+
constructor(value: any);
|
|
7
|
+
stringValue(): string;
|
|
8
|
+
booleanValue(): boolean;
|
|
9
|
+
numberValue(): number;
|
|
10
|
+
nodeSetValue(): XNode[];
|
|
11
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeSetValue = void 0;
|
|
4
|
-
var dom_1 = require("../../dom");
|
|
5
|
-
var NodeSetValue = /** @class */ (function () {
|
|
6
|
-
function NodeSetValue(value) {
|
|
7
|
-
this.value = value;
|
|
8
|
-
this.type = 'node-set';
|
|
9
|
-
}
|
|
10
|
-
NodeSetValue.prototype.stringValue = function () {
|
|
11
|
-
if (this.value.length === 0) {
|
|
12
|
-
return '';
|
|
13
|
-
}
|
|
14
|
-
return (0, dom_1.xmlValue)(this.value[0]);
|
|
15
|
-
};
|
|
16
|
-
NodeSetValue.prototype.booleanValue = function () {
|
|
17
|
-
return this.value.length > 0;
|
|
18
|
-
};
|
|
19
|
-
NodeSetValue.prototype.numberValue = function () {
|
|
20
|
-
return parseInt(this.stringValue()) - 0;
|
|
21
|
-
};
|
|
22
|
-
NodeSetValue.prototype.nodeSetValue = function () {
|
|
23
|
-
return this.value;
|
|
24
|
-
};
|
|
25
|
-
return NodeSetValue;
|
|
26
|
-
}());
|
|
27
|
-
exports.NodeSetValue = NodeSetValue;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NodeSetValue = void 0;
|
|
4
|
+
var dom_1 = require("../../dom");
|
|
5
|
+
var NodeSetValue = /** @class */ (function () {
|
|
6
|
+
function NodeSetValue(value) {
|
|
7
|
+
this.value = value;
|
|
8
|
+
this.type = 'node-set';
|
|
9
|
+
}
|
|
10
|
+
NodeSetValue.prototype.stringValue = function () {
|
|
11
|
+
if (this.value.length === 0) {
|
|
12
|
+
return '';
|
|
13
|
+
}
|
|
14
|
+
return (0, dom_1.xmlValue)(this.value[0]);
|
|
15
|
+
};
|
|
16
|
+
NodeSetValue.prototype.booleanValue = function () {
|
|
17
|
+
return this.value.length > 0;
|
|
18
|
+
};
|
|
19
|
+
NodeSetValue.prototype.numberValue = function () {
|
|
20
|
+
return parseInt(this.stringValue()) - 0;
|
|
21
|
+
};
|
|
22
|
+
NodeSetValue.prototype.nodeSetValue = function () {
|
|
23
|
+
return this.value;
|
|
24
|
+
};
|
|
25
|
+
return NodeSetValue;
|
|
26
|
+
}());
|
|
27
|
+
exports.NodeSetValue = NodeSetValue;
|
|
28
28
|
//# sourceMappingURL=node-set-value.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-set-value.js","sourceRoot":"","sources":["../../../src/xpath/values/node-set-value.ts"],"names":[],"mappings":";;;AAAA,iCAA4C;AAG5C;IAII,sBAAY,KAAU;QAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;IAC3B,CAAC;IAED,kCAAW,GAAX;QACI,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"node-set-value.js","sourceRoot":"","sources":["../../../src/xpath/values/node-set-value.ts"],"names":[],"mappings":";;;AAAA,iCAA4C;AAG5C;IAII,sBAAY,KAAU;QAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;IAC3B,CAAC;IAED,kCAAW,GAAX;QACI,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC1B,OAAO,EAAE,CAAC;QACd,CAAC;QAED,OAAO,IAAA,cAAQ,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACnC,CAAC;IAED,mCAAY,GAAZ;QACI,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IACjC,CAAC;IAED,kCAAW,GAAX;QACI,OAAO,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED,mCAAY,GAAZ;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IACL,mBAAC;AAAD,CAAC,AA5BD,IA4BC;AA5BY,oCAAY"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { XNode } from "../../dom";
|
|
2
|
-
export interface NodeValue {
|
|
3
|
-
stringValue(): string;
|
|
4
|
-
booleanValue(): boolean;
|
|
5
|
-
numberValue(): number;
|
|
6
|
-
nodeSetValue(): XNode[];
|
|
7
|
-
}
|
|
1
|
+
import { XNode } from "../../dom";
|
|
2
|
+
export interface NodeValue {
|
|
3
|
+
stringValue(): string;
|
|
4
|
+
booleanValue(): boolean;
|
|
5
|
+
numberValue(): number;
|
|
6
|
+
nodeSetValue(): XNode[];
|
|
7
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=node-value.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { XNode } from "../../dom";
|
|
2
|
-
import { NodeValue } from "./node-value";
|
|
3
|
-
export declare class NumberValue implements NodeValue {
|
|
4
|
-
value: any;
|
|
5
|
-
type: string;
|
|
6
|
-
constructor(value: any);
|
|
7
|
-
stringValue(): string;
|
|
8
|
-
booleanValue(): boolean;
|
|
9
|
-
numberValue(): number;
|
|
10
|
-
nodeSetValue(): XNode[];
|
|
11
|
-
}
|
|
1
|
+
import { XNode } from "../../dom";
|
|
2
|
+
import { NodeValue } from "./node-value";
|
|
3
|
+
export declare class NumberValue implements NodeValue {
|
|
4
|
+
value: any;
|
|
5
|
+
type: string;
|
|
6
|
+
constructor(value: any);
|
|
7
|
+
stringValue(): string;
|
|
8
|
+
booleanValue(): boolean;
|
|
9
|
+
numberValue(): number;
|
|
10
|
+
nodeSetValue(): XNode[];
|
|
11
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NumberValue = void 0;
|
|
4
|
-
var NumberValue = /** @class */ (function () {
|
|
5
|
-
function NumberValue(value) {
|
|
6
|
-
this.value = value;
|
|
7
|
-
this.type = 'number';
|
|
8
|
-
}
|
|
9
|
-
NumberValue.prototype.stringValue = function () {
|
|
10
|
-
return "".concat(this.value);
|
|
11
|
-
};
|
|
12
|
-
NumberValue.prototype.booleanValue = function () {
|
|
13
|
-
return !!this.value;
|
|
14
|
-
};
|
|
15
|
-
NumberValue.prototype.numberValue = function () {
|
|
16
|
-
return this.value - 0;
|
|
17
|
-
};
|
|
18
|
-
NumberValue.prototype.nodeSetValue = function () {
|
|
19
|
-
throw this;
|
|
20
|
-
};
|
|
21
|
-
return NumberValue;
|
|
22
|
-
}());
|
|
23
|
-
exports.NumberValue = NumberValue;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NumberValue = void 0;
|
|
4
|
+
var NumberValue = /** @class */ (function () {
|
|
5
|
+
function NumberValue(value) {
|
|
6
|
+
this.value = value;
|
|
7
|
+
this.type = 'number';
|
|
8
|
+
}
|
|
9
|
+
NumberValue.prototype.stringValue = function () {
|
|
10
|
+
return "".concat(this.value);
|
|
11
|
+
};
|
|
12
|
+
NumberValue.prototype.booleanValue = function () {
|
|
13
|
+
return !!this.value;
|
|
14
|
+
};
|
|
15
|
+
NumberValue.prototype.numberValue = function () {
|
|
16
|
+
return this.value - 0;
|
|
17
|
+
};
|
|
18
|
+
NumberValue.prototype.nodeSetValue = function () {
|
|
19
|
+
throw this;
|
|
20
|
+
};
|
|
21
|
+
return NumberValue;
|
|
22
|
+
}());
|
|
23
|
+
exports.NumberValue = NumberValue;
|
|
24
24
|
//# sourceMappingURL=number-value.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { XNode } from "../../dom";
|
|
2
|
-
import { NodeValue } from "./node-value";
|
|
3
|
-
export declare class StringValue implements NodeValue {
|
|
4
|
-
value: any;
|
|
5
|
-
type: string;
|
|
6
|
-
constructor(value: any);
|
|
7
|
-
stringValue(): string;
|
|
8
|
-
booleanValue(): boolean;
|
|
9
|
-
numberValue(): number;
|
|
10
|
-
nodeSetValue(): XNode[];
|
|
11
|
-
}
|
|
1
|
+
import { XNode } from "../../dom";
|
|
2
|
+
import { NodeValue } from "./node-value";
|
|
3
|
+
export declare class StringValue implements NodeValue {
|
|
4
|
+
value: any;
|
|
5
|
+
type: string;
|
|
6
|
+
constructor(value: any);
|
|
7
|
+
stringValue(): string;
|
|
8
|
+
booleanValue(): boolean;
|
|
9
|
+
numberValue(): number;
|
|
10
|
+
nodeSetValue(): XNode[];
|
|
11
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StringValue = void 0;
|
|
4
|
-
var StringValue = /** @class */ (function () {
|
|
5
|
-
function StringValue(value) {
|
|
6
|
-
this.value = value;
|
|
7
|
-
this.type = 'string';
|
|
8
|
-
}
|
|
9
|
-
StringValue.prototype.stringValue = function () {
|
|
10
|
-
return String(this.value);
|
|
11
|
-
};
|
|
12
|
-
StringValue.prototype.booleanValue = function () {
|
|
13
|
-
return this.value.length > 0;
|
|
14
|
-
};
|
|
15
|
-
StringValue.prototype.numberValue = function () {
|
|
16
|
-
return this.value - 0;
|
|
17
|
-
};
|
|
18
|
-
StringValue.prototype.nodeSetValue = function () {
|
|
19
|
-
throw this;
|
|
20
|
-
};
|
|
21
|
-
return StringValue;
|
|
22
|
-
}());
|
|
23
|
-
exports.StringValue = StringValue;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StringValue = void 0;
|
|
4
|
+
var StringValue = /** @class */ (function () {
|
|
5
|
+
function StringValue(value) {
|
|
6
|
+
this.value = value;
|
|
7
|
+
this.type = 'string';
|
|
8
|
+
}
|
|
9
|
+
StringValue.prototype.stringValue = function () {
|
|
10
|
+
return String(this.value);
|
|
11
|
+
};
|
|
12
|
+
StringValue.prototype.booleanValue = function () {
|
|
13
|
+
return this.value.length > 0;
|
|
14
|
+
};
|
|
15
|
+
StringValue.prototype.numberValue = function () {
|
|
16
|
+
return this.value - 0;
|
|
17
|
+
};
|
|
18
|
+
StringValue.prototype.nodeSetValue = function () {
|
|
19
|
+
throw this;
|
|
20
|
+
};
|
|
21
|
+
return StringValue;
|
|
22
|
+
}());
|
|
23
|
+
exports.StringValue = StringValue;
|
|
24
24
|
//# sourceMappingURL=string-value.js.map
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
export declare const XPathLocationPath: {
|
|
2
|
-
label: string;
|
|
3
|
-
key: any;
|
|
4
|
-
};
|
|
5
|
-
export declare const XPathRelativeLocationPath: {
|
|
6
|
-
label: string;
|
|
7
|
-
key: any;
|
|
8
|
-
};
|
|
9
|
-
export declare const XPathAbsoluteLocationPath: {
|
|
10
|
-
label: string;
|
|
11
|
-
key: any;
|
|
12
|
-
};
|
|
13
|
-
export declare const XPathStep: {
|
|
14
|
-
label: string;
|
|
15
|
-
key: any;
|
|
16
|
-
};
|
|
17
|
-
export declare const XPathNodeTest: {
|
|
18
|
-
label: string;
|
|
19
|
-
key: any;
|
|
20
|
-
};
|
|
21
|
-
export declare const XPathPredicate: {
|
|
22
|
-
label: string;
|
|
23
|
-
key: any;
|
|
24
|
-
};
|
|
25
|
-
export declare const XPathLiteral: {
|
|
26
|
-
label: string;
|
|
27
|
-
key: any;
|
|
28
|
-
};
|
|
29
|
-
export declare const XPathExpr: {
|
|
30
|
-
label: string;
|
|
31
|
-
key: any;
|
|
32
|
-
};
|
|
33
|
-
export declare const XPathPrimaryExpr: {
|
|
34
|
-
label: string;
|
|
35
|
-
key: any;
|
|
36
|
-
};
|
|
37
|
-
export declare const XPathVariableReference: {
|
|
38
|
-
label: string;
|
|
39
|
-
key: any;
|
|
40
|
-
};
|
|
41
|
-
export declare const XPathNumber: {
|
|
42
|
-
label: string;
|
|
43
|
-
key: any;
|
|
44
|
-
};
|
|
45
|
-
export declare const XPathFunctionCall: {
|
|
46
|
-
label: string;
|
|
47
|
-
key: any;
|
|
48
|
-
};
|
|
49
|
-
export declare const XPathArgumentRemainder: {
|
|
50
|
-
label: string;
|
|
51
|
-
key: any;
|
|
52
|
-
};
|
|
53
|
-
export declare const XPathPathExpr: {
|
|
54
|
-
label: string;
|
|
55
|
-
key: any;
|
|
56
|
-
};
|
|
57
|
-
export declare const XPathUnionExpr: {
|
|
58
|
-
label: string;
|
|
59
|
-
key: any;
|
|
60
|
-
};
|
|
61
|
-
export declare const XPathFilterExpr: {
|
|
62
|
-
label: string;
|
|
63
|
-
key: any;
|
|
64
|
-
};
|
|
65
|
-
export declare const XPathDigits: {
|
|
66
|
-
label: string;
|
|
67
|
-
key: any;
|
|
68
|
-
};
|
|
1
|
+
export declare const XPathLocationPath: {
|
|
2
|
+
label: string;
|
|
3
|
+
key: any;
|
|
4
|
+
};
|
|
5
|
+
export declare const XPathRelativeLocationPath: {
|
|
6
|
+
label: string;
|
|
7
|
+
key: any;
|
|
8
|
+
};
|
|
9
|
+
export declare const XPathAbsoluteLocationPath: {
|
|
10
|
+
label: string;
|
|
11
|
+
key: any;
|
|
12
|
+
};
|
|
13
|
+
export declare const XPathStep: {
|
|
14
|
+
label: string;
|
|
15
|
+
key: any;
|
|
16
|
+
};
|
|
17
|
+
export declare const XPathNodeTest: {
|
|
18
|
+
label: string;
|
|
19
|
+
key: any;
|
|
20
|
+
};
|
|
21
|
+
export declare const XPathPredicate: {
|
|
22
|
+
label: string;
|
|
23
|
+
key: any;
|
|
24
|
+
};
|
|
25
|
+
export declare const XPathLiteral: {
|
|
26
|
+
label: string;
|
|
27
|
+
key: any;
|
|
28
|
+
};
|
|
29
|
+
export declare const XPathExpr: {
|
|
30
|
+
label: string;
|
|
31
|
+
key: any;
|
|
32
|
+
};
|
|
33
|
+
export declare const XPathPrimaryExpr: {
|
|
34
|
+
label: string;
|
|
35
|
+
key: any;
|
|
36
|
+
};
|
|
37
|
+
export declare const XPathVariableReference: {
|
|
38
|
+
label: string;
|
|
39
|
+
key: any;
|
|
40
|
+
};
|
|
41
|
+
export declare const XPathNumber: {
|
|
42
|
+
label: string;
|
|
43
|
+
key: any;
|
|
44
|
+
};
|
|
45
|
+
export declare const XPathFunctionCall: {
|
|
46
|
+
label: string;
|
|
47
|
+
key: any;
|
|
48
|
+
};
|
|
49
|
+
export declare const XPathArgumentRemainder: {
|
|
50
|
+
label: string;
|
|
51
|
+
key: any;
|
|
52
|
+
};
|
|
53
|
+
export declare const XPathPathExpr: {
|
|
54
|
+
label: string;
|
|
55
|
+
key: any;
|
|
56
|
+
};
|
|
57
|
+
export declare const XPathUnionExpr: {
|
|
58
|
+
label: string;
|
|
59
|
+
key: any;
|
|
60
|
+
};
|
|
61
|
+
export declare const XPathFilterExpr: {
|
|
62
|
+
label: string;
|
|
63
|
+
key: any;
|
|
64
|
+
};
|
|
65
|
+
export declare const XPathDigits: {
|
|
66
|
+
label: string;
|
|
67
|
+
key: any;
|
|
68
|
+
};
|