Package wt.util.xml.xslt
Interface Stylesheet
public interface Stylesheet
A Java handle to an XSLT stylesheet. Use
Supported API: true
Extendable: false
XMLSourceFactory.newStylesheet(XMLSource)
to create new instances.
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionThe character encoding specified in the XSLT stylesheet in theencodingattribute of thexsl:outputelement of the stylesheet.The output media type specified in the XSLT stylesheet in themedia-typeattribute of thexsl:outputelement of the stylesheet.voidCauses 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 themedia-typeattribute of thexsl:outputelement of the stylesheet. If thexsl:outputelement 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 theencodingattribute of thexsl:outputelement of the stylesheet. If thexsl:outputelement 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
Causes the stylesheet object to be recomputed from the source from which it was obtained.
Supported API: true- Throws:
SAXExceptionIOException
-