Visit Mozilla.org

The XSLT/JavaScript Interface in Gecko:Interface List

From MDC


[edit] Interface List

XSLTProcessor
Methods

void importStylesheet(DOMNode styleSheet)
imports the XSLT stylesheet. styleSheet is the root-node of a XSLT stylesheet.
DOMDocumentFragment transformToFragment(DOMNode source, DOMDocument owner)
transforms the node source by applying the stylesheet imported using the importStylesheet() function. The owner document of the resulting document fragment is the owner node.
DOMDocument transformToDocument(DOMNode source)
transforms the node source applying the stylesheet given importing using the importStylesheet() function.
void setParameter(String namespaceURI, String localName, Variant value)
sets a parameter in the XSLT stylesheet that was imported.
Variant getParameter(String namespaceURI, String localName)
gets the value of a parameter from the XSLT stylesheet.
void removeParameter(String namespaceURI, String localName)
removes the parameter if it was previously set. This will make the XSLTProcessor use the default value for the parameter as specified in the stylesheet.
void clearParameters()
removes all set parameters from the XSLTProcessor. The XSLTProcessor will then use the defaults specified in the XSLT stylesheet.
void reset()
removes all parameters and stylesheets from the XSLTProcessor.