xslt-processor 5.0.10 → 5.0.11

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/dist/index.js CHANGED
@@ -9204,7 +9204,7 @@ var XPathBaseParser = class {
9204
9204
  return name;
9205
9205
  }
9206
9206
  isNcNameToken(type) {
9207
- return type === "IDENTIFIER" || type === "FUNCTION" || type === "OPERATOR" || type === "LOCATION" || type === "NODE_TYPE";
9207
+ return type === "IDENTIFIER" || type === "FUNCTION" || type === "OPERATOR" || type === "LOCATION" || type === "NODE_TYPE" || type === "RESERVED_WORD";
9208
9208
  }
9209
9209
  parseNameOrWildcard() {
9210
9210
  let name = "";
@@ -15248,10 +15248,6 @@ var Xslt = class {
15248
15248
  }
15249
15249
  const sortContext = context.clone(nodes);
15250
15250
  this.xsltSort(sortContext, template);
15251
- const nodesWithParent = sortContext.nodeList.filter((n) => n.parentNode !== null && n.parentNode !== void 0);
15252
- if (nodesWithParent.length <= 0) {
15253
- throw new Error("Nodes with no parents defined.");
15254
- }
15255
15251
  for (let i = 0; i < sortContext.contextSize(); ++i) {
15256
15252
  yield this.xsltChildNodesExcludingConditional(
15257
15253
  sortContext.clone(sortContext.nodeList, i),