nsISupports
Last changed in Gecko 1.7 Implemented by: @mozilla.org/document-transformer;1?type=xslt
. To create an instance, use:
var xsltProcessor = Components.classes["@mozilla.org/document-transformer;1?type=xslt"] .createInstance(Components.interfaces.nsIXSLTProcessor);
void clearParameters(); |
nsIVariant getParameter(in DOMString namespaceURI, in DOMString localName); |
void importStylesheet(in nsIDOMNode style); |
void removeParameter(in DOMString namespaceURI, in DOMString localName); |
void reset(); |
void setParameter(in DOMString namespaceURI, in DOMString localName, in nsIVariant value); |
nsIDOMDocument transformToDocument(in nsIDOMNode source); |
nsIDOMDocumentFragment transformToFragment(in nsIDOMNode source, in nsIDOMDocument output); |
Removes all set parameters from this nsIXSLTProcessor
. This will make the processor use the default-value for all parameters as specified in the stylesheet.
void clearParameters();
None.
Gets a parameter if previously set by setParameter()
. Returns null
otherwise.
nsIVariant getParameter( in DOMString namespaceURI, in DOMString localName );
namespaceURI
localName
An nsIVariant
containing the value of the parameter.
Imports the specified stylesheet into this XSLTProcessor for transformations.
void importStylesheet( in nsIDOMNode style );
style
Removes a parameter, if set. This will make the processor use the default-value for the parameter as specified in the stylesheet.
void removeParameter( in DOMString namespaceURI, in DOMString localName );
namespaceURI
localName
Remove all parameters and stylesheets from this nsIXSLTProcessor
.
void reset();
None.
Sets a parameter to be used in subsequent transformations with this nsIXSLTProcessor
. If the parameter doesn't exist in the stylesheet the parameter will be ignored.
void setParameter( in DOMString namespaceURI, in DOMString localName, in nsIVariant value );
namespaceURI
localName
value
Transforms the node source applying the stylesheet imported by importStylesheet()
.
nsIDOMDocument transformToDocument( in nsIDOMNode source );
source
An Document
containing the result of the transformation.
Transforms the node source applying the stylesheet imported by importStylesheet()
. The created fragment will be owned by the specified output document.
nsIDOMDocumentFragment transformToFragment( in nsIDOMNode source, in nsIDOMDocument output );
source
output
A DocumentFragment
containing the resulting transform.