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 XMLSourceFactory.newXSLTransform(...) for creating new instances.

Supported API: true

Extendable: false
See Also:
  • 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

      void outputToStream(OutputStream out) throws SAXException, IOException
      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 method outputToWriter(...).

      Supported API: true
      Parameters:
      out -
      Throws:
      SAXException
      IOException
      See Also:
    • outputToWriter

      void outputToWriter(Writer out) throws SAXException, IOException
      Write the results of the transformation to the specified Writer.

      Supported API: true
      Parameters:
      out -
      Throws:
      SAXException
      IOException
    • 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

      void setXMLSource(XMLSource xmlSource)
      Resets the XMLSource to that specified. Useful for resetting the source of a transformation chain.

      Supported API: true
      Parameters:
      xmlSource -
    • setInputParameters

      void setInputParameters(Hashtable inputParameters)
      Reset the input parameters to the specified set.

      Supported API: true
      Parameters:
      inputParameters -