wt.util.xml.xslt
Class JAXPStylesheet

java.lang.Object
  extended bywt.util.xml.xslt.JAXPStylesheet
All Implemented Interfaces:
Stylesheet

class JAXPStylesheet
extends Object
implements Stylesheet


Field Summary
private static String ENCODING_ATTR
           
private  JAXPXMLSourceFactory factory
           
private static String HTML_METHOD
           
private static String HTML_MIME_TYPE
           
private static String IDENTITY_XSL_STRING
           
private static String MEDIA_TYPE_ATTR
           
private static String METHOD_ATTR
           
private  Templates templates
           
private static String TEXT_METHOD
           
private static String TEXT_MIME_TYPE
           
private static String UTF8_ENCODING
           
private static String XHTML_METHOD
           
private static String XML_METHOD
           
private static String XML_MIME_TYPE
           
private  XMLSource xslSource
           
 
Constructor Summary
(package private) JAXPStylesheet(JAXPXMLSourceFactory factory, XMLSource xslSource)
           
 
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.
(package private)  Templates getTemplates()
          Retrieve templates object
 void recompute()
          Construct templates object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTML_MIME_TYPE

private static final String HTML_MIME_TYPE
See Also:
Constant Field Values

XML_MIME_TYPE

private static final String XML_MIME_TYPE
See Also:
Constant Field Values

TEXT_MIME_TYPE

private static final String TEXT_MIME_TYPE
See Also:
Constant Field Values

XML_METHOD

private static final String XML_METHOD
See Also:
Constant Field Values

HTML_METHOD

private static final String HTML_METHOD
See Also:
Constant Field Values

TEXT_METHOD

private static final String TEXT_METHOD
See Also:
Constant Field Values

XHTML_METHOD

private static final String XHTML_METHOD
See Also:
Constant Field Values

MEDIA_TYPE_ATTR

private static final String MEDIA_TYPE_ATTR
See Also:
Constant Field Values

METHOD_ATTR

private static final String METHOD_ATTR
See Also:
Constant Field Values

ENCODING_ATTR

private static final String ENCODING_ATTR
See Also:
Constant Field Values

UTF8_ENCODING

private static final String UTF8_ENCODING
See Also:
Constant Field Values

IDENTITY_XSL_STRING

private static final String IDENTITY_XSL_STRING
See Also:
Constant Field Values

factory

private JAXPXMLSourceFactory factory

xslSource

private XMLSource xslSource

templates

private Templates templates
Constructor Detail

JAXPStylesheet

JAXPStylesheet(JAXPXMLSourceFactory factory,
               XMLSource xslSource)
         throws SAXException,
                IOException
Method Detail

getOutputMediaType

public String getOutputMediaType()
Description copied from interface: Stylesheet
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

Specified by:
getOutputMediaType in interface Stylesheet
Returns:
String

getOutputEncoding

public String getOutputEncoding()
Description copied from interface: Stylesheet
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

Specified by:
getOutputEncoding in interface Stylesheet
Returns:
String

recompute

public void recompute()
               throws SAXException,
                      IOException
Construct templates object

Specified by:
recompute in interface Stylesheet
Throws:
SAXException
IOException

getTemplates

Templates getTemplates()
Retrieve templates object