@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.
@@ -1991,8 +1991,8 @@ var XsltEngine = class {
1991
1991
  throw new Error("No output document available");
1992
1992
  }
1993
1993
  const context = new XsltContext({
1994
- currentNode: sourceNode.documentElement || sourceNode,
1995
- currentNodeList: [sourceNode.documentElement || sourceNode],
1994
+ currentNode: sourceNode,
1995
+ currentNodeList: [sourceNode],
1996
1996
  position: 1,
1997
1997
  outputDocument: doc,
1998
1998
  stylesheet: this.stylesheetDoc,
@@ -2012,12 +2012,7 @@ var XsltEngine = class {
2012
2012
  context.variables[name] = this.evaluateVariable(def, context);
2013
2013
  }
2014
2014
  const fragment = doc.createDocumentFragment();
2015
- this.applyTemplates(
2016
- [sourceNode.documentElement || sourceNode],
2017
- null,
2018
- context,
2019
- fragment
2020
- );
2015
+ this.applyTemplates([sourceNode], null, context, fragment);
2021
2016
  return fragment;
2022
2017
  }
2023
2018
  /**