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
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 java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
CompilingStylesheetProcessor
public CompilingStylesheetProcessor()
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.