Package com.saxonica.config
Class ProfessionalTransformerFactory
java.lang.Object
javax.xml.transform.TransformerFactory
javax.xml.transform.sax.SAXTransformerFactory
net.sf.saxon.jaxp.SaxonTransformerFactory
net.sf.saxon.TransformerFactoryImpl
com.saxonica.config.ProfessionalTransformerFactory
- All Implemented Interfaces:
Configuration.ApiProvider
- Direct Known Subclasses:
EnterpriseTransformerFactory
The is the JAXP TransformerFactory implementation for the professional
edition of Saxon. It can be invoked by setting the system property
javax.xml.transform.TransformerFactory to the value com.saxonica.ProfessionalTransformerFactory,
and calling TransformerFactory.newInstance(), or it can be instantiated directly.
-
Field Summary
Fields inherited from class javax.xml.transform.sax.SAXTransformerFactory
FEATURE, FEATURE_XMLFILTER
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a ProfessionalTransformerFactory.Construct a ProfessionalTransformerFactory using an existing Configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setAttribute
(String name, Object value) Allows the user to set specific attributes on the underlying implementation.Methods inherited from class net.sf.saxon.jaxp.SaxonTransformerFactory
getAssociatedStylesheet, getAttribute, getConfiguration, getErrorListener, getFeature, getProcessor, getURIResolver, newTemplates, newTemplates, newTemplatesHandler, newTransformer, newTransformer, newTransformerHandler, newTransformerHandler, newTransformerHandler, newXMLFilter, newXMLFilter, setConfiguration, setErrorListener, setFeature, setURIResolver
Methods inherited from class javax.xml.transform.TransformerFactory
newDefaultInstance, newInstance, newInstance
-
Constructor Details
-
ProfessionalTransformerFactory
public ProfessionalTransformerFactory()Create a ProfessionalTransformerFactory. A ProfessionalConfiguration will be created automatically. -
ProfessionalTransformerFactory
Construct a ProfessionalTransformerFactory using an existing Configuration.- Parameters:
config
- the configuration to be used. This must be a ProfessionalConfiguration.
-
-
Method Details
-
setAttribute
Allows the user to set specific attributes on the underlying implementation. An attribute in this context is defined to be an option that the implementation provides.- Overrides:
setAttribute
in classSaxonTransformerFactory
- Parameters:
name
- The name of the attribute. This must be one of the constants defined in classFeatureKeys
.value
- The value of the attribute.- Throws:
IllegalArgumentException
- thrown if Saxon doesn't recognize the attribute.- See Also:
-