| java.lang.Object javax.xml.transform.Transformer com.caucho.xsl.TransformerImpl
All known Subclasses: com.caucho.xsl.NodeTransformerImpl, com.caucho.xsl.StreamTransformerImpl, com.caucho.xsl.StringTransformerImpl,
Method Summary | |
public void | addCacheDepend(Path path) | protected void | addCacheDepend(String path) | public void | addFunction(String name, XPathFun fun) Adds a new custom function. | public void | clearParameters() Clears all the external stylesheet parameters. | public ArrayList<Path> | getCacheDepends() | public ErrorListener | getErrorListener() Returns the error listener. | public boolean | getFeature(String name) | public Properties | getOutputProperties() Returns a copy of the xsl:output properties. | public String | getOutputProperty(String name) Returns the value of a single named xsl:output property. | public Object | getParameter(String name) Returns the named stylesheet parameter. | public Object | getProperty(String name) | public StylesheetImpl | getStylesheet() | public URIResolver | getURIResolver() Returns the URI to filename resolver. | protected Node | parseDocument(Source source) Parses the source XML document from the source.
Parameters: source - the JAXP source. | protected Node | parseDocument(InputStream is, String systemId) Parses the source XML document from the input stream. | protected Node | parseDocument(String url) Parses the source document specified by a URL
Parameters: url - path to the document to be parsed. | protected Node | parseStringDocument(String source, String systemId) Parses a string as an XML document.
Parameters: source - the string to use as the XML source Parameters: systemId - the URL for the string document. | public void | setErrorListener(ErrorListener errorListener) Sets the error listener. | public void | setFeature(String name, boolean enable) | public void | setOutputProperties(Properties properties) Sets the output properties. | public void | setOutputProperty(String name, String value) Sets a single xsl:output property. | public void | setParameter(String name, Object value) Sets a parameter that XPath expressions in the stylesheet can
use as $name. | public void | setProperty(String name, Object value) | public void | setURIResolver(URIResolver uriResolver) Sets the URI to filename resolver. | public void | transform(Source source, Result result) Transforms the source into the result. | public void | transform(Node node, OutputStream os) | public void | transform(Node node, OutputStream os, String encoding, String systemId) Transforms from a DOM node to an output stream. | public Node | transform(Node sourceNode, Node destNode) Transforms from the source node to the destination node, returning
the destination node. | public void | transform(Node sourceNode, ContentHandler contentHandler, LexicalHandler lexicalHandler) Transforms from the source node to the sax handlers. |
GENERATE_LOCATION | final public static String GENERATE_LOCATION(Code) | | |
L | protected static L10N L(Code) | | |
addCacheDepend | public void addCacheDepend(Path path)(Code) | | |
addCacheDepend | protected void addCacheDepend(String path)(Code) | | |
addFunction | public void addFunction(String name, XPathFun fun)(Code) | | Adds a new custom function.
Parameters: name - the name of the function. Parameters: fun - the new function. |
clearParameters | public void clearParameters()(Code) | | Clears all the external stylesheet parameters.
|
getOutputProperties | public Properties getOutputProperties()(Code) | | Returns a copy of the xsl:output properties.
a copy of the properties. |
getOutputProperty | public String getOutputProperty(String name)(Code) | | Returns the value of a single named xsl:output property.
Parameters: name - the name of the property. |
getParameter | public Object getParameter(String name)(Code) | | Returns the named stylesheet parameter.
Parameters: name - the name of the parameter. |
getURIResolver | public URIResolver getURIResolver()(Code) | | Returns the URI to filename resolver.
|
parseDocument | protected Node parseDocument(InputStream is, String systemId) throws IOException, SAXException(Code) | | Parses the source XML document from the input stream.
Parameters: is - the source input stream. Parameters: systemId - the path of the source document DOM node for the parsed XML. |
parseDocument | protected Node parseDocument(String url) throws IOException, SAXException(Code) | | Parses the source document specified by a URL
Parameters: url - path to the document to be parsed. the parsed document. |
parseStringDocument | protected Node parseStringDocument(String source, String systemId) throws IOException, SAXException(Code) | | Parses a string as an XML document.
Parameters: source - the string to use as the XML source Parameters: systemId - the URL for the string document. the parsed document. |
setErrorListener | public void setErrorListener(ErrorListener errorListener)(Code) | | Sets the error listener.
|
setFeature | public void setFeature(String name, boolean enable)(Code) | | |
setOutputProperties | public void setOutputProperties(Properties properties)(Code) | | Sets the output properties.
Parameters: properties - the new output properties. |
setOutputProperty | public void setOutputProperty(String name, String value)(Code) | | Sets a single xsl:output property.
Parameters: name - the name of the property. Parameters: value - the value of the property. |
setParameter | public void setParameter(String name, Object value)(Code) | | Sets a parameter that XPath expressions in the stylesheet can
use as $name.
Parameters: name - the name of the XPath variable. Parameters: value - the value for the variable. |
setURIResolver | public void setURIResolver(URIResolver uriResolver)(Code) | | Sets the URI to filename resolver.
|
transform | public void transform(Source source, Result result) throws TransformerException(Code) | | Transforms the source into the result.
Parameters: source - descriptor specifying the input source. Parameters: result - descriptor specifying the output result. |
|
|