public class XSLTProcessor extends SimpleScriptable
| Constructor and Description |
|---|
XSLTProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
jsConstructor()
Javascript constructor.
|
void |
jsxFunction_addParameter(String baseName,
Object parameter,
Object namespaceURI)
Adds parameters into an XSL Transformations (XSLT) style sheet.
|
Object |
jsxFunction_getParameter(String namespaceURI,
String localName)
Gets a parameter if previously set by setParameter.
|
void |
jsxFunction_importStylesheet(Node style)
Import the stylesheet into this XSLTProcessor for transformations.
|
void |
jsxFunction_setParameter(String namespaceURI,
String localName,
Object value)
Sets a parameter to be used in subsequent transformations with this nsIXSLTProcessor.
|
void |
jsxFunction_transform()
Starts the transformation process or resumes a previously failed transformation.
|
XMLDocument |
jsxFunction_transformToDocument(Node source)
Transforms the node source applying the stylesheet given by the importStylesheet() function.
|
DocumentFragment |
jsxFunction_transformToFragment(Node source,
Object output)
Transforms the node source applying the stylesheet given by the importStylesheet() function.
|
Node |
jsxGet_input()
Returns which XML input tree to transform.
|
Object |
jsxGet_output()
Gets a custom output to write the result of the transformation.
|
void |
jsxSet_input(Node input)
Specifies which XML input tree to transform.
|
void |
jsxSet_output(Object output)
Sets the object to which to write the output of the transformation.
|
get, getBooleanArg, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getIntArg, getLog, getObjectArg, getPrototype, getScriptableFor, getStartingScope, getStringArg, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, makeScriptableFor, setDomNode, setDomNode, setHtmlElementassociateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototypepublic void jsConstructor()
public void jsxFunction_importStylesheet(Node style)
style - The 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.public XMLDocument jsxFunction_transformToDocument(Node source)
source - The node to be transformed.public DocumentFragment jsxFunction_transformToFragment(Node source, Object output)
source - The node to be transformed.output - This document is used to generate the output.public void jsxFunction_setParameter(String namespaceURI, String localName, Object value)
namespaceURI - The namespaceURI of the XSLT parameter.localName - The local name of the XSLT parameter.value - The new value of the XSLT parameter.public Object jsxFunction_getParameter(String namespaceURI, String localName)
namespaceURI - The namespaceURI of the XSLT parameter.localName - The local name of the XSLT parameter.public void jsxSet_input(Node input)
input - the input tree.public Node jsxGet_input()
public void jsxSet_output(Object output)
output - The object to which to write the output of the transformation.public Object jsxGet_output()
public void jsxFunction_addParameter(String baseName, Object parameter, Object namespaceURI)
baseName - The name that will be used inside the style sheet to identify the parameter context.parameter - The parameter value.
To remove a parameter previously added to the processor, provide a value of Empty or Null instead.namespaceURI - An optional namespace.public void jsxFunction_transform()
Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.