public class XSLTProcessor extends SimpleScriptable
| Constructor and Description |
|---|
XSLTProcessor()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getParameter(String namespaceURI,
String localName)
Gets a parameter if previously set by setParameter.
|
void |
importStylesheet(Node style)
Imports the specified stylesheet into this XSLTProcessor for transformations.
|
void |
setParameter(String namespaceURI,
String localName,
Object value)
Sets a parameter to be used in subsequent transformations with this nsIXSLTProcessor.
|
XMLDocument |
transformToDocument(Node source)
Transforms the node source applying the stylesheet given by the importStylesheet() function.
|
DocumentFragment |
transformToFragment(Node source,
Object output)
Transforms the node source applying the stylesheet given by the importStylesheet() function.
|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setClassName, setDomNode, setDomNode, setHtmlElement, setParentScopeapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, 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, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setPrototype, sizepublic void importStylesheet(Node style)
style - the root-node of an XSLT stylesheet (may be a document node or an element node)public XMLDocument transformToDocument(Node source)
source - the node to be transformedpublic DocumentFragment transformToFragment(Node source, Object output)
source - the node to be transformedoutput - This document is used to generate the outputpublic void 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 getParameter(String namespaceURI, String localName)
namespaceURI - the namespaceURI of the XSLT parameterlocalName - the local name of the XSLT parameterCopyright © 2002–2015 Gargoyle Software Inc.. All rights reserved.