public class XsltTransformerFactory extends XmlTransformerFactoryImpl
The XsltTransformerFactory is responsible for creating the Transformer
.
The Transformer
is used to actually perform a document transformation.
In the adapter configuration file this class is aliased as xslt-transformer-factory which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
XsltTransformerFactory() |
XsltTransformerFactory(java.lang.String impl) |
Modifier and Type | Method and Description |
---|---|
javax.xml.transform.Transformer |
createTransformer(java.lang.String url) |
javax.xml.transform.Transformer |
createTransformer(java.lang.String url,
org.xml.sax.EntityResolver entityResolver) |
java.lang.String |
getTransformerFactoryImpl() |
void |
setTransformerFactoryImpl(java.lang.String s)
Specify the transformer factory that will be used.
|
configure, getFailOnRecoverableError, getTransformerFactoryAttributes, getTransformerFactoryFeatures, getXmlDocumentFactoryConfig, setFailOnRecoverableError, setTransformerFactoryAttributes, setTransformerFactoryFeatures, setXmlDocumentFactoryConfig
public XsltTransformerFactory()
public XsltTransformerFactory(java.lang.String impl)
public javax.xml.transform.Transformer createTransformer(java.lang.String url) throws java.lang.Exception
java.lang.Exception
public javax.xml.transform.Transformer createTransformer(java.lang.String url, org.xml.sax.EntityResolver entityResolver) throws java.lang.Exception
java.lang.Exception
public java.lang.String getTransformerFactoryImpl()
public void setTransformerFactoryImpl(java.lang.String s)
If you have both saxon and xalan (for instance) available on the classpath; and you want to explicitly use the xalan
implementation then you could put org.apache.xalan.processor.TransformerFactoryImpl
here to force it to use Xalan or
net.sf.saxon.TransformerFactoryImpl
to force it to use Saxon.
s
- the transformerFactoryImpl to set, if not specified the JVM default is used TransformerFactory.newInstance()
.