xmldoc = new DOMParser().parseFromString('<items><item><id>1</id></item><item><id>2</id></item><item><id>3</id></item></items>', "text/xml");
xsltdoc = new DOMParser().parseFromString('<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\n\
<xsl:output method="xml" />\n\
<xsl:template match="item"><foo id="{id}"/></xsl:template>\n\
</xsl:stylesheet>', "text/xml");
var processor = new XSLTProcessor;
processor.importStylesheet(xsltdoc); var result = processor.transformToDocument(xmldoc); var resultElements = Array.prototype.filter.call(result.getElementsByTagName('*'), isTxResult);
is(resultElements.length, 1, "there should be only one 'transformiix:result' element");
is(resultElements[0], result.documentElement, "the 'transformiix:result' element should be the document element");
</script>
</pre>
</body>
</html>
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.18 Sekunden
(vorverarbeitet am 2026-04-26)
¤
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.