Class StreamingTransformerFactory

All Implemented Interfaces:
Configuration.ApiProvider

public class StreamingTransformerFactory extends EnterpriseTransformerFactory
The is a customized JAXP TransformerFactory implementation for the enterprise edition of Saxon. It is designed specifically for running XSLT 3.0 streaming transformations, where the Source object supplied to the Transformer.transform() method is supplied as a SAXSource or StreamSource. Because it is designed for streaming, the source document does not become the global context item (specifically, if a global variable references the value of the context item ".", a dynamic error XPDY0002 occurs). This means that this JAXP TransformerFactory is not a 100% compatible replacement for a "standard" TransformerFactory.
  • Constructor Details

    • StreamingTransformerFactory

      public StreamingTransformerFactory()
      Create a StreamingTransformerFactory. An EnterpriseConfiguration will be created automatically.
    • StreamingTransformerFactory

      public StreamingTransformerFactory(EnterpriseConfiguration config)
      Construct a StreamingTransformerFactory using an existing Configuration.
      Parameters:
      config - the configuration to be used. This must be an EnterpriseConfiguration.
  • Method Details