Top Description Methods
uk.ac.ed.ph.snuggletex.utilities

public Interface TransformerFactoryChooser

Known Direct Implementers
uk.ac.ed.ph.snuggletex.utilities.DefaultTransformerFactoryChooser, uk.ac.ed.ph.snuggletex.utilities.SaxonTransformerFactoryChooser
Imports
uk.ac.ed.ph.snuggletex.SnuggleRuntimeException, javax.xml.transform.TransformerFactory, javax.xml.transform.dom.DOMResult, .DOMSource

This interface allows you to specify how XSLT implementations should be instantiated. This can sometimes be useful if you want to explicitly avoid the standard JAXP TransformerFactory#newInstance() loading mechanism.

This is managed via StylesheetManager.

The default implementation is DefaultTransformerFactoryChooser which is used unless you explicitly request something different.

Author
David McKain
Since
1.2.0
Version
$Revision:2824 $
See Also
DefaultTransformerFactoryChooser, SaxonTransformerFactoryChooser

Method Summary

Modifier and TypeMethod and Description
public TransformerFactory
getSuitableXSLT10TransformerFactory()

Implementors of this interface should return an XSLT 1.0-compatible TransformerFactory that SnuggleTeX is free to mess around with and is capable of handling DOMSource and DOMResults.

public TransformerFactory
getSuitableXSLT20TransformerFactory()

Implementors of this interface should return an XSLT 2.0-compatible TransformerFactory that SnuggleTeX is free to mess around with and is capable of handling DOMSource and DOMResults.

public boolean
isXSLT20SupportAvailable()

Implementors of this interface should indicate whether support for XSLT 2.0 is available.

Method Detail

getSuitableXSLT10TransformerFactoryback to summary
public TransformerFactory getSuitableXSLT10TransformerFactory()

Implementors of this interface should return an XSLT 1.0-compatible TransformerFactory that SnuggleTeX is free to mess around with and is capable of handling DOMSource and DOMResults.

Exceptions
SnuggleRuntimeException:
if no such factory could not obtained.
getSuitableXSLT20TransformerFactoryback to summary
public TransformerFactory getSuitableXSLT20TransformerFactory()

Implementors of this interface should return an XSLT 2.0-compatible TransformerFactory that SnuggleTeX is free to mess around with and is capable of handling DOMSource and DOMResults.

Exceptions
SnuggleRuntimeException:
if no such factory could not obtained.
isXSLT20SupportAvailableback to summary
public boolean isXSLT20SupportAvailable()

Implementors of this interface should indicate whether support for XSLT 2.0 is available.