com.icl.saxon

Class TemplatesHandlerImpl

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.

Author: Michael H. Kay

Field Summary
TreeBuilderbuilder
TransformerFactoryImplfactory
StringsystemId
Templatestemplates
Constructor Summary
protected TemplatesHandlerImpl(TransformerFactoryImpl factory)
Create a TemplatesHandlerImpl and initialise variables.
Method Summary
StringgetSystemId()
Get the systemId of the document
TemplatesgetTemplates()
Get the Templates object to used for a transformation
voidsetSystemId(String url)
Set the SystemId of the document

Field Detail

builder

TreeBuilder builder

factory

TransformerFactoryImpl factory

systemId

String systemId

templates

Templates templates

Constructor Detail

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 Detail

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