com.jclark.xsl.trax

Class TemplatesHandlerImpl

class TemplatesHandlerImpl extends XMLFilterImpl implements TemplatesHandler

An implementation of javax.xml.transform.sax.TemplatesHandler. Collects SAX events representing an XSLT stylesheet, and provides access to an object representing the "compiled" sheet
Constructor Summary
protected TemplatesHandlerImpl(TransformerFactoryImpl factory, XMLProcessor sheetModelBuilder)
construct with a reference to the factory, and a processor which can construct an object model from the SAX events representing the stylesheet
Method Summary
voidendDocument()
end of stylesheet SAX events, compile it
StringgetSystemId()
qets the base URI associated with the stylesheet
TemplatesgetTemplates()
When a TemplatesHandler object is used as a ContentHandler for the parsing of transformation instructions, it creates a Templates object, which the caller can get once the SAX events have been completed.
voidsetSystemId(String systemId)
sets the base URI we want to associate with the stylesheet
voidstartDocument()
SAX implementation: recieve notification of start of parse, redirect all subsequent SAX events to our embedded object model builder

Constructor Detail

TemplatesHandlerImpl

protected TemplatesHandlerImpl(TransformerFactoryImpl factory, XMLProcessor sheetModelBuilder)
construct with a reference to the factory, and a processor which can construct an object model from the SAX events representing the stylesheet

Method Detail

endDocument

public void endDocument()
end of stylesheet SAX events, compile it

getSystemId

public String getSystemId()
qets the base URI associated with the stylesheet

getTemplates

public Templates getTemplates()
When a TemplatesHandler object is used as a ContentHandler for the parsing of transformation instructions, it creates a Templates object, which the caller can get once the SAX events have been completed.

setSystemId

public void setSystemId(String systemId)
sets the base URI we want to associate with the stylesheet

startDocument

public void startDocument()
SAX implementation: recieve notification of start of parse, redirect all subsequent SAX events to our embedded object model builder