@tradik/xslt-processor 1.0.1 → 1.0.3
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 +3 -3
- package/dist/xslt-processor.browser.js +3 -8
- package/dist/xslt-processor.browser.js.map +2 -2
- package/dist/xslt-processor.browser.min.js +1 -1
- package/dist/xslt-processor.browser.min.js.map +2 -2
- package/dist/xslt-processor.cjs +3 -8
- package/dist/xslt-processor.cjs.map +2 -2
- package/dist/xslt-processor.js +3 -8
- package/dist/xslt-processor.js.map +2 -2
- package/package.json +3 -3
- package/src/xslt/engine.js +8 -10
package/README.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
[](https://github.com/spagu/XSLT-Processor/actions/workflows/test.yml)
|
|
4
4
|
[](https://github.com/spagu/XSLT-Processor/actions/workflows/release.yml)
|
|
5
5
|
[](https://www.npmjs.com/package/@tradik/xslt-processor)
|
|
6
|
-
[](https://opensource.org/licenses/BSD-3-Clause)
|
|
7
|
+
[](https://nodejs.org/)
|
|
8
8
|
[](https://github.com/spagu/XSLT-Processor)
|
|
9
9
|
|
|
10
10
|
JavaScript implementation of XSLTProcessor for browser environments and Node.js CLI. This package provides a complete implementation of the W3C XSLTProcessor API that can be used as a drop-in replacement for the native browser implementation.
|
|
@@ -660,7 +660,7 @@ All colors meet WCAG 2.2 AA contrast requirements for accessibility.
|
|
|
660
660
|
|
|
661
661
|
## License
|
|
662
662
|
|
|
663
|
-
|
|
663
|
+
BSD-3-Clause License - see [LICENSE.md](LICENSE.md) for details.
|
|
664
664
|
|
|
665
665
|
## Related
|
|
666
666
|
|
|
@@ -2031,8 +2031,8 @@ var XsltProcessorLib = (() => {
|
|
|
2031
2031
|
throw new Error("No output document available");
|
|
2032
2032
|
}
|
|
2033
2033
|
const context = new XsltContext({
|
|
2034
|
-
currentNode: sourceNode
|
|
2035
|
-
currentNodeList: [sourceNode
|
|
2034
|
+
currentNode: sourceNode,
|
|
2035
|
+
currentNodeList: [sourceNode],
|
|
2036
2036
|
position: 1,
|
|
2037
2037
|
outputDocument: doc,
|
|
2038
2038
|
stylesheet: this.stylesheetDoc,
|
|
@@ -2052,12 +2052,7 @@ var XsltProcessorLib = (() => {
|
|
|
2052
2052
|
context.variables[name] = this.evaluateVariable(def, context);
|
|
2053
2053
|
}
|
|
2054
2054
|
const fragment = doc.createDocumentFragment();
|
|
2055
|
-
this.applyTemplates(
|
|
2056
|
-
[sourceNode.documentElement || sourceNode],
|
|
2057
|
-
null,
|
|
2058
|
-
context,
|
|
2059
|
-
fragment
|
|
2060
|
-
);
|
|
2055
|
+
this.applyTemplates([sourceNode], null, context, fragment);
|
|
2061
2056
|
return fragment;
|
|
2062
2057
|
}
|
|
2063
2058
|
/**
|