XML DOM XSLTProcessor object

The XSLTProcessor converts XML using XSLT.

XSLTProcessor object

The XSLTProcessor uses XSLT stylesheets to convert XML documents.

Through 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. Nee 1 9 Ja
getParameter() Return the value of the specified parameter. Nee 1 9 Ja
importStylesheet() Specify the XSLT stylesheet to be used. Nee 1 9 Ja
removeParameter() Delete the specified parameter. Nee 1 9 Ja
reset() Restore the XSLTProcessor to the default state. Nee 1 9 Ja
setParameter() Set the stylesheet parameter. Nee 1 9 Ja
transformToDocument() Maak een knoop of document om te converteren naar een nieuw document. Nee 1 9 Ja
transformToFragment() Maak een knoop of document om te converteren naar DocumentFragment. Nee 1 9 Ja