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.mjs CHANGED
@@ -9189,7 +9189,7 @@ var XPathBaseParser = class {
9189
9189
  return name;
9190
9190
  }
9191
9191
  isNcNameToken(type) {
9192
- return type === "IDENTIFIER" || type === "FUNCTION" || type === "OPERATOR" || type === "LOCATION" || type === "NODE_TYPE";
9192
+ return type === "IDENTIFIER" || type === "FUNCTION" || type === "OPERATOR" || type === "LOCATION" || type === "NODE_TYPE" || type === "RESERVED_WORD";
9193
9193
  }
9194
9194
  parseNameOrWildcard() {
9195
9195
  let name = "";
@@ -15233,10 +15233,6 @@ var Xslt = class {
15233
15233
  }
15234
15234
  const sortContext = context.clone(nodes);
15235
15235
  this.xsltSort(sortContext, template);
15236
- const nodesWithParent = sortContext.nodeList.filter((n) => n.parentNode !== null && n.parentNode !== void 0);
15237
- if (nodesWithParent.length <= 0) {
15238
- throw new Error("Nodes with no parents defined.");
15239
- }
15240
15236
  for (let i = 0; i < sortContext.contextSize(); ++i) {
15241
15237
  yield this.xsltChildNodesExcludingConditional(
15242
15238
  sortContext.clone(sortContext.nodeList, i),