Package wt.util.xml.xslt
Interface XSLTransform
- All Superinterfaces:
DOMXMLSource,ReaderXMLSource,SAX2XMLSource,wt.util.xml.xslt.SAXXMLSource,StreamXMLSource,XMLSource
public interface XSLTransform
extends DOMXMLSource, wt.util.xml.xslt.SAXXMLSource, StreamXMLSource, ReaderXMLSource, SAX2XMLSource
Provides access to the results of applying an XSL Transform (aka Stylesheet)
to an XMLSource. Use
Supported API: true
Extendable: false
XMLSourceFactory.newXSLTransform(...)
for creating new instances.
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionThe parameters to pass into the stylesheet during the transform.The stylesheet used by the transform.The XMLSource used as input to the transform (Warning: modifying the XML source and modifying it [for example reading from an input stream] will likely result in errors in the transformation).voidWrite the results of the transformation to the specified OutputStream.voidoutputToWriter(Writer out) Write the results of the transformation to the specified Writer.voidsetInputParameters(Hashtable inputParameters) Reset the input parameters to the specified set.voidsetXMLSource(XMLSource xmlSource) Resets the XMLSource to that specified.Methods inherited from interface wt.util.xml.xslt.DOMXMLSource
getNodeMethods inherited from interface wt.util.xml.xslt.ReaderXMLSource
getReaderMethods inherited from interface wt.util.xml.xslt.SAX2XMLSource
produceEventsMethods inherited from interface wt.util.xml.xslt.StreamXMLSource
getInputStreamMethods inherited from interface wt.util.xml.xslt.XMLSource
getBaseURI
-
Method Details
-
getStyleSheet
Stylesheet getStyleSheet()The stylesheet used by the transform.
Supported API: true- Returns:
- Stylesheet
-
getXMLSource
XMLSource getXMLSource()The XMLSource used as input to the transform (Warning: modifying the XML source and modifying it [for example reading from an input stream] will likely result in errors in the transformation).
Supported API: true- Returns:
- XMLSource
-
outputToStream
Write the results of the transformation to the specified OutputStream. The character encoding will be the default used by the underlying XSL implementation (most likely the platform default encoding, e.g. Windows-Latin-1) and not necessarily UTF-8. To guarantee a particular character encoding, create and OutputStreamWriter with a specific Java character encoding and use the methodoutputToWriter(...).
Supported API: true- Parameters:
out-- Throws:
SAXExceptionIOException- See Also:
-
outputToWriter
Write the results of the transformation to the specified Writer.
Supported API: true- Parameters:
out-- Throws:
SAXExceptionIOException
-
getInputParameters
Hashtable getInputParameters()The parameters to pass into the stylesheet during the transform. Note that modifying this hashtable will modify the parameters available to the stylesheet.
Supported API: true- Returns:
- Hashtable
-
setXMLSource
Resets the XMLSource to that specified. Useful for resetting the source of a transformation chain.
Supported API: true- Parameters:
xmlSource-
-
setInputParameters
Reset the input parameters to the specified set.
Supported API: true- Parameters:
inputParameters-
-