Skip to content

Commit c022466

Browse files
Removing commented lines.
1 parent ac6ad4d commit c022466

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/xslt/xslt.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,6 @@ export class Xslt {
961961
} else {
962962
let node = domCreateTransformedTextNode(this.outputDocument, template.nodeValue);
963963
node.transformedParentNode = parentNode;
964-
// context.nodeList[context.position].outputNode = node;
965964
domAppendTransformedChild(parentNode, node);
966965
}
967966
}
@@ -991,9 +990,6 @@ export class Xslt {
991990
node = context.nodeList[context.position];
992991
}
993992

994-
// const fragment = domCreateDocumentFragment(this.outputDocument);
995-
// await this.xsltChildNodes(context, template, fragment);
996-
997993
let newNode: XNode;
998994
if (node.outputNode === undefined || node.outputNode === null || context.outputDepth > 0) {
999995
newNode = domCreateElement(this.outputDocument, template.nodeName);
@@ -1007,7 +1003,6 @@ export class Xslt {
10071003

10081004
newNode.transformedNodeName = template.nodeName;
10091005
newNode.transformedLocalName = template.localName;
1010-
// newNode.transformedChildNodes = fragment.transformedChildNodes;
10111006

10121007
const outputNode = context.outputNodeList[context.outputPosition];
10131008
domAppendTransformedChild(outputNode, newNode);
@@ -1152,7 +1147,12 @@ export class Xslt {
11521147
}
11531148
}
11541149

1155-
// Test if the given element is an XSLT element, optionally the one with the given name
1150+
/**
1151+
* Test if the given element is an XSLT element, optionally the one with the given name.
1152+
* @param {XNode} element The element.
1153+
* @param {string} opt_wantedName The name for comparison.
1154+
* @returns True, if element is an XSL node. False otherwise.
1155+
*/
11561156
protected isXsltElement(element: XNode, opt_wantedName?: string) {
11571157
if (opt_wantedName && element.localName != opt_wantedName) return false;
11581158
if (element.namespaceUri) return element.namespaceUri === 'http://www.w3.org/1999/XSL/Transform';

0 commit comments

Comments
 (0)