XML DOM XSLTProcessor-Objekt

XSLTProcessor converts XML using XSLT.

XSLTProcessor object

XSLTProcessor uses XSLT stylesheets to convert XML documents.

By using importStylesheet() methodInitialize it with a stylesheet. If your stylesheet uses parameters, you can use setParameter() to set these parameters. Finally, use transformToDocument() or transformToFragment() to perform the actual transformation.

IE supports XSLT but does not implement the XSLTProcessor object.

Refer to the Node object specific to IE transformNode() and transformNodeToObject() method.

Methods of the XSLTProcessor object

Method Description IE F O W3C
clearParameters() Delete any previously set parameters. Nein 1 9 Ja
getParameter() Return the value of the specified parameter. Nein 1 9 Ja
importStylesheet() Specify the XSLT stylesheet to be used. Nein 1 9 Ja
removeParameter() Delete the specified parameter. Nein 1 9 Ja
reset() Restore the XSLTProcessor to the default state. Nein 1 9 Ja
setParameter() Set the stylesheet parameter. Nein 1 9 Ja
transformToDocument() Den Knoten oder das Dokument in ein neues Dokument umwandeln. Nein 1 9 Ja
transformToFragment() Den Knoten oder das Dokument in einen DocumentFragment umwandeln. Nein 1 9 Ja