org.apache.xalan.processor
Class CompilingStylesheetProcessor

java.lang.Object
  |
  +--javax.xml.transform.TransformerFactory
        |
        +--javax.xml.transform.sax.SAXTransformerFactory
              |
              +--org.apache.xalan.processor.TransformerFactoryImpl
                    |
                    +--org.apache.xalan.processor.CompilingStylesheetProcessor

public class CompilingStylesheetProcessor
extends TransformerFactoryImpl

The TransformerFactoryImpl, which implements the TRaX TransformerFactory interface, processes XSLT Stylesheets into a Templates object. This version has been modified to kick off conversion to JAVA, via CompilingStylesheetHandler


Fields inherited from class org.apache.xalan.processor.TransformerFactoryImpl
XSLT_PROPERTIES
 
Fields inherited from class javax.xml.transform.sax.SAXTransformerFactory
FEATURE, FEATURE_XMLFILTER
 
Constructor Summary
CompilingStylesheetProcessor()
           
 
Method Summary
 TemplatesHandler newTemplatesHandler()
          Get a TemplatesBuilder object that can process SAX events into a Templates object, if the processor supports the "http://xml.org/trax/features/sax/input" feature.
 
Methods inherited from class org.apache.xalan.processor.TransformerFactoryImpl
getAssociatedStylesheet, getAttribute, getErrorListener, getFeature, getURIResolver, newTemplates, newTransformer, newTransformer, newTransformerHandler, newTransformerHandler, newTransformerHandler, newXMLFilter, newXMLFilter, processFromNode, setAttribute, setErrorListener, setURIResolver
 
Methods inherited from class javax.xml.transform.TransformerFactory
newInstance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompilingStylesheetProcessor

public CompilingStylesheetProcessor()
Method Detail

newTemplatesHandler

public TemplatesHandler newTemplatesHandler()
                                     throws TransformerConfigurationException
Get a TemplatesBuilder object that can process SAX events into a Templates object, if the processor supports the "http://xml.org/trax/features/sax/input" feature.

Open issues:

Should TransformerFactory derive from org.xml.sax.ContentHandler?

Instead of requesting an object from the TransformerFactory class, should the TransformerFactory class simply derive from org.xml.sax.ContentHandler?
Returns:
A TemplatesBuilder object, or null if not supported.
Throws:
May - throw a TransformerConfigurationException if a StylesheetHandler can not be constructed for some reason.
TransformerConfigurationException -  
Overrides:
newTemplatesHandler in class TransformerFactoryImpl


Copyright © 2000 Apache XML Project. All Rights Reserved.