Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIXSLTProcessor Interface Reference

import "nsIXSLTProcessor.idl";

Inheritance diagram for nsIXSLTProcessor:
Inheritance graph
[legend]
Collaboration diagram for nsIXSLTProcessor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void importStylesheet (in nsIDOMNode style)
 Import the stylesheet into this XSLTProcessor for transformations.
nsIDOMDocumentFragment transformToFragment (in nsIDOMNode source, in nsIDOMDocument output)
 Transforms the node source applying the stylesheet given by the importStylesheet() function.
nsIDOMDocument transformToDocument (in nsIDOMNode source)
 Transforms the node source applying the stylesheet given by the importStylesheet() function.
void setParameter (in DOMString namespaceURI, in DOMString localName, in nsIVariant value)
 Sets a parameter to be used in subsequent transformations with this nsIXSLTProcessor.
nsIVariant getParameter (in DOMString namespaceURI, in DOMString localName)
 Gets a parameter if previously set by setParameter.
void removeParameter (in DOMString namespaceURI, in DOMString localName)
 Removes a parameter, if set.
void clearParameters ()
 Removes all set parameters from this nsIXSLTProcessor.
void reset ()
 Remove all parameters and stylesheets from this nsIXSLTProcessor.

Detailed Description

Definition at line 45 of file nsIXSLTProcessor.idl.


Member Function Documentation

Removes all set parameters from this nsIXSLTProcessor.

This will make the processor use the default-value for all parameters as specified in the stylesheet.

nsIVariant nsIXSLTProcessor::getParameter ( in DOMString  namespaceURI,
in DOMString  localName 
)

Gets a parameter if previously set by setParameter.

Returns null otherwise.

Parameters:
namespaceURIThe namespaceURI of the XSLT parameter
localNameThe local name of the XSLT parameter
Returns:
nsIVariant The value of the XSLT parameter

Import the stylesheet into this XSLTProcessor for transformations.

Parameters:
styleThe root-node of a XSLT stylesheet. This can be either a document node or an element node. If a document node then the document can contain either a XSLT stylesheet or a LRE stylesheet. If the argument is an element node it must be the xsl:stylesheet (or xsl:transform) element of an XSLT stylesheet.
Exceptions:
nsIXSLTException
void nsIXSLTProcessor::removeParameter ( in DOMString  namespaceURI,
in DOMString  localName 
)

Removes a parameter, if set.

This will make the processor use the default-value for the parameter as specified in the stylesheet.

Parameters:
namespaceURIThe namespaceURI of the XSLT parameter
localNameThe local name of the XSLT parameter

Remove all parameters and stylesheets from this nsIXSLTProcessor.

void nsIXSLTProcessor::setParameter ( in DOMString  namespaceURI,
in DOMString  localName,
in nsIVariant  value 
)

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.

Parameters:
namespaceURIThe namespaceURI of the XSLT parameter
localNameThe local name of the XSLT parameter
valueThe new value of the XSLT parameter
Exceptions:
NS_ERROR_ILLEGAL_VALUEThe datatype of value is not supported

Transforms the node source applying the stylesheet given by the importStylesheet() function.

Parameters:
sourceThe node to be transformed
Returns:
Document The result of the transformation
Exceptions:
nsIXSLTException

Transforms the node source applying the stylesheet given by the importStylesheet() function.

The owner document of the output node owns the returned document fragment.

Parameters:
sourceThe node to be transformed
outputThis document is used to generate the output
Returns:
DocumentFragment The result of the transformation
Exceptions:
nsIXSLTException

The documentation for this interface was generated from the following file: