@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.
@@ -2031,8 +2031,8 @@ var XsltEngine = class {
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 XsltEngine = class {
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
  /**