net.sf.saxon

Class TemplatesHandlerImpl

public class TemplatesHandlerImpl extends ReceivingContentHandler 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

Constructor Summary
protected TemplatesHandlerImpl(Configuration config)
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
voidsetDocumentLocator(Locator locator)
Callback interface for SAX: not for application use
voidsetSystemId(String url)
Set the SystemId of the document

Constructor Detail

TemplatesHandlerImpl

protected TemplatesHandlerImpl(Configuration config)
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

setDocumentLocator

public void setDocumentLocator(Locator locator)
Callback interface for SAX: not for application use

setSystemId

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