Class XSLTProcessor
Object
|
+--XSLTProcessor
- class
XSLTProcessor
Defined in Sarissa.js
Constructor Summary |
XSLTProcessor
()
Basic implementation of Mozilla's XSLTProcessor for IE.
|
Method Summary |
void
|
clearParameters()
Clear parameters (set them to default values as defined in the stylesheet itself)
|
Object
|
getParameter(nsURI, name)
Gets a parameter if previously set by setParameter.
|
void
|
importStylesheet(xslDoc)
Imports the given XSLT DOM and compiles it to a reusable transform
Note: If the stylesheet was loaded from a URL and contains xsl:import or xsl:include elements,it will be reloaded to resolve those
|
void
|
setParameter(nsURI, name, value)
Set global XSLT parameter of the imported stylesheet
|
Object
|
transformToDocument(sourceDoc)
Transform the given XML DOM and return the transformation result as a new DOM document
|
Object
|
transformToFragment(sourceDoc, ownerDoc)
Transform the given XML DOM and return the transformation result as a new DOM fragment.
|
processor
Object processor
template
Object template
XSLTProcessor
XSLTProcessor()
Basic implementation of Mozilla's XSLTProcessor for IE.
Reuses the same XSLT stylesheet for multiple transforms
clearParameters
void clearParameters()
Clear parameters (set them to default values as defined in the stylesheet itself)
getParameter
Object getParameter(nsURI, name)
Gets a parameter if previously set by setParameter. Returns null
otherwise
Parameters:
name
- The parameter base name
value
- The new parameter value
Returns:
The parameter value if reviously set by setParameter, null otherwise
importStylesheet
void importStylesheet(xslDoc)
Imports the given XSLT DOM and compiles it to a reusable transform
Note: If the stylesheet was loaded from a URL and contains xsl:import or xsl:include elements,it will be reloaded to resolve those
Parameters:
xslDoc
- The XSLT DOMDocument to import
setParameter
void setParameter(nsURI, name, value)
Set global XSLT parameter of the imported stylesheet
Parameters:
nsURI
- The parameter namespace URI
name
- The parameter base name
value
- The new parameter value
transformToDocument
Object transformToDocument(sourceDoc)
Transform the given XML DOM and return the transformation result as a new DOM document
Parameters:
sourceDoc
- The XML DOMDocument to transform
Returns:
The transformation result as a DOM Document
transformToFragment
Object transformToFragment(sourceDoc, ownerDoc)
Transform the given XML DOM and return the transformation result as a new DOM fragment.
Note: The xsl:output method must match the nature of the owner document (XML/HTML).
Parameters:
sourceDoc
- The XML DOMDocument to transform
ownerDoc
- The owner of the result fragment
Returns:
The transformation result as a DOM Document
Documentation generated by
JSDoc on Tue Aug 21 08:12:28 2007