org.apache.xalan.processor
Class CompilingStylesheetHandler
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--org.apache.xalan.processor.StylesheetHandler
|
+--org.apache.xalan.processor.CompilingStylesheetHandler
- public class CompilingStylesheetHandler
- extends StylesheetHandler
**For advanced use only**
Initializes and processes a stylesheet via SAX events.
This differs from StylesheetHandler in adding a post-
processing stage which attempts to replace part or all
of the recursively-interpreted Templates collection with
Java code, which is generated, compiled, and patched
back into the tempate trees.
- See Also:
StylesheetHandler
Method Summary |
void |
endDocument()
Receive notification of the end of the document. |
Methods inherited from class org.apache.xalan.processor.StylesheetHandler |
characters,
createXPath,
endElement,
endPrefixMapping,
error,
fatalError,
getBaseIdentifier,
getLocator,
getNamespaceForPrefix,
getNamespaceForPrefix,
getOriginatingNode,
getStylesheetRoot,
getSystemId,
getTemplates,
ignorableWhitespace,
isStylesheetParsingComplete,
notationDecl,
processingInstruction,
pushStylesheet,
resolveEntity,
setDocumentLocator,
setOriginatingNode,
setSystemId,
skippedEntity,
startDocument,
startElement,
startPrefixMapping,
unparsedEntityDecl,
warn,
warning |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
CompilingStylesheetHandler
public CompilingStylesheetHandler(TransformerFactoryImpl processor)
throws TransformerConfigurationException
- Create a StylesheetHandler object, creating a root stylesheet
as the target.
- Throws:
- May - throw TransformerConfigurationException if a StylesheetRoot
can not be constructed for some reason.
endDocument
public void endDocument()
throws SAXException
- Receive notification of the end of the document.
Run standard cleanup of the internal representation,
then start trying to replace that rep with custom code.
- Throws:
- SAXException - Any SAX exception, possibly
wrapping another exception.
- Overrides:
- endDocument in class StylesheetHandler
- See Also:
ContentHandler.endDocument()
Copyright � 2000 Apache XML Project. All Rights Reserved.