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)
Imports the specified 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.
|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size
public void jsConstructor()
public void jsxFunction_importStylesheet(Node style)
style
- the root-node of an XSLT stylesheet (may be a document node or an element node)public XMLDocument jsxFunction_transformToDocument(Node source)
source
- the node to be transformedpublic DocumentFragment jsxFunction_transformToFragment(Node source, Object output)
source
- the node to be transformedoutput
- This document is used to generate the outputpublic void jsxFunction_setParameter(String namespaceURI, String localName, Object value)
namespaceURI
- the namespaceURI of the XSLT parameterlocalName
- the local name of the XSLT parametervalue
- the new value of the XSLT parameterpublic Object jsxFunction_getParameter(String namespaceURI, String localName)
namespaceURI
- the namespaceURI of the XSLT parameterlocalName
- the local name of the XSLT parameterpublic void jsxSet_input(Node input)
input
- the input treepublic Node jsxGet_input()
public void jsxSet_output(Object output)
output
- the object to which to write the output of the transformationpublic 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 contextparameter
- the parameter value
To remove a parameter previously added to the processor, provide a value of Empty or Null instead.namespaceURI
- an optional namespacepublic void jsxFunction_transform()
Copyright © 2002-2013 Gargoyle Software Inc.. All Rights Reserved.