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

public final Class SaxonTransformerFactoryChooser

extends Object
implements TransformerFactoryChooser
Class Inheritance
All Implemented Interfaces
uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser
Imports
uk.ac.ed.ph.snuggletex.SnuggleRuntimeException, uk.ac.ed.ph.snuggletex.internal.util.XMLUtilities, javax.xml.transform.TransformerFactory

Implementation of TransformerFactoryChooser that is hard-wired to use whichever version of Saxon can be found in the ClassPath under the net.sf.saxon package hierarchy, thus providing support for XSLT 2.0.
Author
David McKain
Since
1.2.0
Version
$Revision$

Field Summary

Modifier and TypeField and Description
private static final SaxonTransformerFactoryChooser
singletonInstance

Singleton instance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static SaxonTransformerFactoryChooser
public TransformerFactory
public TransformerFactory
getSuitableXSLT10TransformerFactory()

Implements uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.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()

Implements uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.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()

Implements uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.isXSLT20SupportAvailable.

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

singletonInstanceback to summary
private static final SaxonTransformerFactoryChooser singletonInstance

Singleton instance

Constructor Detail

SaxonTransformerFactoryChooserback to summary
public SaxonTransformerFactoryChooser()

Method Detail

getInstanceback to summary
public static SaxonTransformerFactoryChooser getInstance()
getSaxonTransformerFactoryback to summary
public TransformerFactory getSaxonTransformerFactory()
getSuitableXSLT10TransformerFactoryback to summary
public TransformerFactory getSuitableXSLT10TransformerFactory()

Implements uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.getSuitableXSLT10TransformerFactory.

Doc from uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.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.

getSuitableXSLT20TransformerFactoryback to summary
public TransformerFactory getSuitableXSLT20TransformerFactory()

Implements uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.getSuitableXSLT20TransformerFactory.

Doc from uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.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.

isXSLT20SupportAvailableback to summary
public boolean isXSLT20SupportAvailable()

Implements uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.isXSLT20SupportAvailable.

Doc from uk.ac.ed.ph.snuggletex.utilities.TransformerFactoryChooser.isXSLT20SupportAvailable.

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