var didTransform = false; var processor = new XSLTProcessor(); varstyle = ' + 'xmlns:exsl="http://exslt.org/common" ' + 'version="1.0">' + '' + '' + '' + '' + ''; var styleDoc = new DOMParser().parseFromString (style, "text/xml");
var data = ''; 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
¤ Dauer der Verarbeitung: 0.18 Sekunden
(vorverarbeitet)
¤
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.