|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.htmlunit.corejs.javascript.ScriptableObject
com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
com.gargoylesoftware.htmlunit.javascript.host.XSLTProcessor
public class XSLTProcessor
A JavaScript object for XSLTProcessor.
| Field Summary |
|---|
| Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
|---|
NOT_FOUND |
| Constructor Summary | |
|---|---|
XSLTProcessor()
|
|
| Method Summary | |
|---|---|
void |
addParameter(String baseName,
Object parameter,
Object namespaceURI)
Adds parameters into an XSL Transformations (XSLT) style sheet. |
Node |
getInput()
Returns which XML input tree to transform. |
Object |
getOutput()
Gets a custom output to write the result of the transformation. |
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 |
jsConstructor()
JavaScript constructor. |
void |
setInput(Node input)
Specifies which XML input tree to transform. |
void |
setOutput(Object output)
Sets the object to which to write the output of the transformation. |
void |
setParameter(String namespaceURI,
String localName,
Object value)
Sets a parameter to be used in subsequent transformations with this nsIXSLTProcessor. |
void |
transform()
Starts the transformation process or resumes a previously failed transformation. |
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. |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable |
|---|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement, setParentScope |
| Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
applyDescriptorToAttributeBitset, 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, size |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XSLTProcessor()
| Method Detail |
|---|
public void jsConstructor()
public 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 transformed
public DocumentFragment transformToFragment(Node source,
Object output)
source - the node to be transformedoutput - This document is used to generate the output
public 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 parameter
public Object getParameter(String namespaceURI,
String localName)
namespaceURI - the namespaceURI of the XSLT parameterlocalName - the local name of the XSLT parameter
public void setInput(Node input)
input - the input treepublic Node getInput()
public void setOutput(Object output)
output - the object to which to write the output of the transformationpublic Object getOutput()
public void 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 transform()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||