Interface Stylesheet


public interface Stylesheet
A Java handle to an XSLT stylesheet. Use XMLSourceFactory.newStylesheet(XMLSource) to create new instances.

Supported API: true

Extendable: false
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    The character encoding specified in the XSLT stylesheet in the encoding attribute of the xsl:output element of the stylesheet.
    The output media type specified in the XSLT stylesheet in the media-type attribute of the xsl:output element of the stylesheet.
    void
    Causes the stylesheet object to be recomputed from the source from which it was obtained.
  • Method Details

    • getOutputMediaType

      String getOutputMediaType()
      The output media type specified in the XSLT stylesheet in the media-type attribute of the xsl:output element of the stylesheet. If the xsl:output element looks like:
         <xsl:output method="xml" indent="yes" media-type="image/svg"/>
      then the media type returned will be "image/svg".

      See The XSLT 1.0 Recommendation for more information.

      Supported API: true

      Returns:
      String
    • getOutputEncoding

      String getOutputEncoding()
      The character encoding specified in the XSLT stylesheet in the encoding attribute of the xsl:output element of the stylesheet. If the xsl:output element looks like:
         <xsl:output method="html" indent="yes" encoding="iso-8859-1"/>
      then the encoding returned will be "iso-8859-1".

      See The XSLT 1.0 Recommendation for more information.

      Supported API: true

      Returns:
      String
    • recompute

      void recompute() throws SAXException, IOException
      Causes the stylesheet object to be recomputed from the source from which it was obtained.

      Supported API: true
      Throws:
      SAXException
      IOException