org.apache.xalan.client
public class XSLTProcessorApplet extends Applet
UNKNOWN: general
Constructor Summary | |
---|---|
XSLTProcessorApplet()
The XSLTProcessorApplet constructor takes no arguments. |
Method Summary | |
---|---|
void | destroy()
Cleanup; called when applet is terminated and unloaded. |
String | escapeString(String s)
Given a String containing markup, escape the markup so it
can be displayed in the browser.
|
void | freeCache()
The processor keeps a cache of the source and
style trees, so call this method if they have changed
or you want to do garbage collection. |
String | getAppletInfo()
Get basic information about the applet |
String | getHtmlText()
Assuming the stylesheet URL and the input XML URL have been set,
perform the transformation and return the result as a String.
|
String[][] | getParameterInfo()
Get descriptions of the applet parameters. |
String | getResultTreeAsText()
Get the HTML result Tree as a text string suitable
for display in a browser. |
String | getSourceTreeAsText()
Get the XML source Tree as a text string suitable
for display in a browser. |
String | getStyleTreeAsText()
Get the XSL style Tree as a text string suitable
for display in a browser. |
String | getTreeAsText(String treeURL)
Get an XML document (or stylesheet)
|
void | init()
Standard applet initialization. |
void | paint(Graphics g)
Do not call; this applet contains no UI or visual components.
|
void | setDocumentURL(String urlString)
Set the URL to the XML document that will be transformed
with the XSL stylesheet. |
void | setStylesheetParam(String key, String expr)
Submit a stylesheet parameter.
|
void | setStyleSheetAttribute(String nameOfIDAttrOfElemToModify, String elemId, String attrName, String value)
Set an attribute in the stylesheet, which gives the ability
to have some dynamic selection control. |
void | setStyleURL(String urlString)
Set the URL to the XSL stylesheet that will be used
to transform the input XML. |
void | start()
Automatically called when the HTML client containing the applet loads.
|
void | stop()
Automatically called when the HTML page containing the applet is no longer
on the screen. |
String | transformToHtml(String doc, String style)
Process a document and a stylesheet and return
the transformation result. |
String | transformToHtml(String doc)
Process a document and a stylesheet and return
the transformation result. |
Parameters: s String to escape The escaped string.
Returns: A String with the applet name and author.
Returns: A string that contains the contents pointed to by the URL.
Returns: A two-dimensional array of Strings with Name, Type, and Description for each parameter.
Returns: Transformation result as unmarked text.
Throws: Exception thrown if tree can not be converted.
Returns: XML source document as a string.
Throws: Exception thrown if tree can not be converted.
Returns: The XSL stylesheet as a string.
Throws: Exception thrown if tree can not be converted.
Parameters: treeURL valid URL string for the document.
Returns: document
Throws: IOException
Parameters: urlString valid URL string for XML document.
Parameters: key stylesheet parameter key expr the parameter expression to be submitted.
See Also: javax.xml.transform.Transformer#setParameter(String,Object)
Parameters: nameOfIDAttrOfElemToModify The name of an attribute to search for a unique id. elemId The unique ID to look for. attrName Once the element is found, the name of the attribute to set. value The value to set the attribute to.
Parameters: urlString valid URL string for XSL stylesheet.
Parameters: doc URL string to XML document style URL string to XSL stylesheet
Returns: HTML transformation result
Parameters: doc URL string to XML document containing an xsl:stylesheet PI.
Returns: HTML transformation result