| com.gargoylesoftware.htmlunit.javascript.SimpleScriptable com.gargoylesoftware.htmlunit.javascript.host.XSLTProcessor
XSLTProcessor | public class XSLTProcessor extends SimpleScriptable (Code) | | A JavaScript object for XSLTProcessor.
version: $Revision: 2156 $ author: Ahmed Ashour |
jsConstructor | public void jsConstructor()(Code) | | Javascript constructor.
|
jsxFunction_addParameter | public void jsxFunction_addParameter(String baseName, Object parameter, Object namespaceURI)(Code) | | Adds parameters into an XSL Transformations (XSLT) style sheet.
Parameters: baseName - The name that will be used inside the style sheet to identify the parameter context. Parameters: parameter - The parameter value.To remove a parameter previously added to the processor, provide a value of Empty or Null instead. Parameters: namespaceURI - An optional namespace. |
jsxFunction_getParameter | public Object jsxFunction_getParameter(String namespaceURI, String localName)(Code) | | Gets a parameter if previously set by setParameter. Returns null otherwise.
Parameters: namespaceURI - The namespaceURI of the XSLT parameter. Parameters: localName - The local name of the XSLT parameter. The value of the XSLT parameter. |
jsxFunction_importStylesheet | public void jsxFunction_importStylesheet(com.gargoylesoftware.htmlunit.javascript.host.Node style)(Code) | | Import the stylesheet into this XSLTProcessor for transformations.
Parameters: 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) elementof an XSLT stylesheet. |
jsxFunction_setParameter | public void jsxFunction_setParameter(String namespaceURI, String localName, Object value)(Code) | | Sets a parameter to be used in subsequent transformations with this nsIXSLTProcessor.
If the parameter doesn't exist in the stylesheet the parameter will be ignored.
Parameters: namespaceURI - The namespaceURI of the XSLT parameter. Parameters: localName - The local name of the XSLT parameter. Parameters: value - The new value of the XSLT parameter. |
jsxFunction_transform | public void jsxFunction_transform()(Code) | | Starts the transformation process or resumes a previously failed transformation.
|
jsxFunction_transformToDocument | public XMLDocument jsxFunction_transformToDocument(com.gargoylesoftware.htmlunit.javascript.host.Node source)(Code) | | Transforms the node source applying the stylesheet given by the importStylesheet() function.
The owner document of the output node owns the returned document fragment.
Parameters: source - The node to be transformed. The result of the transformation. |
jsxFunction_transformToFragment | public DocumentFragment jsxFunction_transformToFragment(com.gargoylesoftware.htmlunit.javascript.host.Node source, Object output)(Code) | | Transforms the node source applying the stylesheet given by the importStylesheet() function.
The owner document of the output node owns the returned document fragment.
Parameters: source - The node to be transformed. Parameters: output - This document is used to generate the output. The result of the transformation. |
jsxGet_output | public Object jsxGet_output()(Code) | | Gets a custom output to write the result of the transformation.
the output of the transformation. |
jsxSet_output | public void jsxSet_output(Object output)(Code) | | Sets the object to which to write the output of the transformation.
Parameters: output - The object to which to write the output of the transformation. |
Methods inherited from com.gargoylesoftware.htmlunit.javascript.SimpleScriptable | public Object get(String name, Scriptable start)(Code)(Java Doc) public static boolean getBooleanArg(int index, Object[] args, boolean defaultValue)(Code)(Java Doc) public String getClassName()(Code)(Java Doc) public Object getDefaultValue(Class hint)(Code)(Java Doc) final public DomNode getDomNodeOrDie() throws IllegalStateException(Code)(Java Doc) final public DomNode getDomNodeOrNull()(Code)(Java Doc) public static int getIntArg(int index, Object[] args, int defaultValue)(Code)(Java Doc) final protected Log getLog()(Code)(Java Doc) public static Object getObjectArg(int index, Object[] args, Object defaultValue)(Code)(Java Doc) protected Scriptable getPrototype(Class javaScriptClass)(Code)(Java Doc) protected SimpleScriptable getScriptableFor(Object object)(Code)(Java Doc) protected Scriptable getStartingScope()(Code)(Java Doc) public static String getStringArg(int index, Object[] args, String defaultValue)(Code)(Java Doc) protected Transformer getTransformerScriptableFor()(Code)(Java Doc) protected Window getWindow() throws RuntimeException(Code)(Java Doc) protected static Window getWindow(Scriptable s) throws RuntimeException(Code)(Java Doc) protected Object getWithPreemption(String name)(Code)(Java Doc) public SimpleScriptable makeScriptableFor(DomNode domNode)(Code)(Java Doc) public void setDomNode(DomNode domNode)(Code)(Java Doc) protected void setDomNode(DomNode domNode, boolean assignScriptObject)(Code)(Java Doc) public void setHtmlElement(HtmlElement htmlElement)(Code)(Java Doc)
|
|
|