BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.apache.xalan.processor
Class CompilingStylesheetHandler

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--weblogic.apache.xalan.processor.StylesheetHandler
              |
              +--weblogic.apache.xalan.processor.CompilingStylesheetHandler

public class CompilingStylesheetHandler
extends StylesheetHandler

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.

Author:
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.
See Also:
StylesheetHandler

Constructor Summary
CompilingStylesheetHandler(TransformerFactoryImpl processor)
          Create a StylesheetHandler object, creating a root stylesheet as the target.
 
Method Summary
 void endDocument()
          Receive notification of the end of the document.
 
Methods inherited from class weblogic.apache.xalan.processor.StylesheetHandler
characters, createXPath, endElement, endPrefixMapping, error, error, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompilingStylesheetHandler

public CompilingStylesheetHandler(TransformerFactoryImpl processor)
                           throws javax.xml.transform.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.
Method Detail

endDocument

public void endDocument()
                 throws org.xml.sax.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:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.
Overrides:
endDocument in class StylesheetHandler
See Also:
ContentHandler.endDocument()

Documentation is available at
http://e-docs.bea.com/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.