wt.util.xml.xslt
Interface Stylesheet

All Known Implementing Classes:
JAXPStylesheet

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:
XMLSourceFactory.newStylesheet(wt.util.xml.xslt.XMLSource)

Method Summary
 String getOutputEncoding()
          The character encoding specified in the XSLT stylesheet in the encoding attribute of the xsl:output element of the stylesheet.
 String getOutputMediaType()
          The output media type specified in the XSLT stylesheet in the media-type attribute of the xsl:output element of the stylesheet.
 void recompute()
          Causes the stylesheet object to be recomputed from the source from which it was obtained.
 

Method Detail

getOutputMediaType

public 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

public 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

public 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