com.icl.saxon

Class TemplatesHandlerImpl

Implemented Interfaces:
ContentHandler, DTDHandler, LexicalHandler, TemplatesHandler

public class TemplatesHandlerImpl
extends ContentEmitter
implements TemplatesHandler

TemplatesHandlerImpl implements the javax.xml.transform.sax.TemplatesHandler interface. It acts as a ContentHandler which receives a stream of SAX events representing a stylesheet, and returns a Templates object that represents the compiled form of this stylesheet.

Constructor Summary

TemplatesHandlerImpl(TransformerFactoryImpl factory)
Create a TemplatesHandlerImpl and initialise variables.

Method Summary

String
getSystemId()
Get the systemId of the document
Templates
getTemplates()
Get the Templates object to used for a transformation
void
setSystemId(String url)
Set the SystemId of the document

Methods inherited from class com.icl.saxon.ContentEmitter

characters, comment, endCDATA, endDTD, endDocument, endElement, endEntity, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, setEmitter, setNamePool, skippedEntity, startCDATA, startDTD, startDocument, startElement, startEntity, startPrefixMapping, unparsedEntityDecl

Constructor Details

TemplatesHandlerImpl

protected TemplatesHandlerImpl(TransformerFactoryImpl factory)
Create a TemplatesHandlerImpl and initialise variables. The constructor is protected, because the Filter should be created using newTemplatesHandler() in the SAXTransformerFactory class

Method Details

getSystemId

public String getSystemId()
Get the systemId of the document

getTemplates

public Templates getTemplates()
Get the Templates object to used for a transformation

setSystemId

public void setSystemId(String url)
Set the SystemId of the document