@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 CHANGED
@@ -3,8 +3,8 @@
3
3
  [![CI](https://github.com/spagu/XSLT-Processor/actions/workflows/test.yml/badge.svg)](https://github.com/spagu/XSLT-Processor/actions/workflows/test.yml)
4
4
  [![Release](https://github.com/spagu/XSLT-Processor/actions/workflows/release.yml/badge.svg)](https://github.com/spagu/XSLT-Processor/actions/workflows/release.yml)
5
5
  [![npm version](https://img.shields.io/npm/v/@tradik/xslt-processor.svg)](https://www.npmjs.com/package/@tradik/xslt-processor)
6
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
- [![Node.js Version](https://img.shields.io/badge/node-%3E%3D25.0.0-brightgreen.svg)](https://nodejs.org/)
6
+ [![License: BSD-3-Clause](https://img.shields.io/badge/License-BSD--3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
7
+ [![Node.js Version](https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen.svg)](https://nodejs.org/)
8
8
  [![Test Coverage](https://img.shields.io/badge/coverage-100%25-brightgreen.svg)](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
- MIT License - see [LICENSE](../../LICENSE) for details.
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.documentElement || sourceNode,
2035
- currentNodeList: [sourceNode.documentElement || 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
  /**