Class ProfessionalTransformerFactory

  • All Implemented Interfaces:
    Configuration.ApiProvider
    Direct Known Subclasses:
    EnterpriseTransformerFactory

    public class ProfessionalTransformerFactory
    extends TransformerFactoryImpl
    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.
    • Constructor Detail

      • ProfessionalTransformerFactory

        public ProfessionalTransformerFactory()
        Create a ProfessionalTransformerFactory. A ProfessionalConfiguration will be created automatically.
      • ProfessionalTransformerFactory

        public ProfessionalTransformerFactory​(ProfessionalConfiguration config)
        Construct a ProfessionalTransformerFactory using an existing Configuration.
        Parameters:
        config - the configuration to be used. This must be a ProfessionalConfiguration.
    • Method Detail

      • setAttribute

        public void setAttribute​(java.lang.String name,
                                 java.lang.Object value)
                          throws java.lang.IllegalArgumentException
        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 class SaxonTransformerFactory
        Parameters:
        name - The name of the attribute. This must be one of the constants defined in class FeatureKeys.
        value - The value of the attribute.
        Throws:
        java.lang.IllegalArgumentException - thrown if Saxon doesn't recognize the attribute.
        See Also:
        FeatureKeys