var didTransform = false; var processor = new XSLTProcessor(); varstyle = '<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ' + 'xmlns:exsl="http://exslt.org/common" ' + 'version="1.0">' + '<xsl:output method="html"/>' + '<xsl:template match="/">' + '<xsl:copy-of select="exsl:node-set(42)"/>' + '</xsl:template>' + '</xsl:stylesheet>'; var styleDoc = new DOMParser().parseFromString (style, "text/xml");
var data = '<root/>'; var originalDoc = new DOMParser().parseFromString(data, "text/xml");
processor.importStylesheet(styleDoc); var fragment = processor.transformToFragment(originalDoc, document);
is(fragment.firstChild.nodeType, Node.TEXT_NODE, "Result of transform should be a textnode");
is(fragment.firstChild.nodeValue, "42", "Result of transform should be a textnode with value '42'");
</script>
</pre>
</body>
</html>
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-04-27)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.