com.jclark.xsl.trax
Class TemplatesHandlerImpl
XMLFilterImpl
com.jclark.xsl.trax.TemplatesHandlerImpl
- TemplatesHandler
(package private) 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
void | endDocument() - end of stylesheet SAX events, compile it
|
String | getSystemId() - qets the base URI associated with the stylesheet
|
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.
|
void | setSystemId(String systemId) - sets the base URI we want to associate with the stylesheet
|
void | startDocument() - SAX implementation: recieve notification of start of parse,
redirect all subsequent SAX events to our embedded object model
builder
|
TemplatesHandlerImpl
protected TemplatesHandlerImpl(TransformerFactoryImpl factory,
XMLProcessor sheetModelBuilder)
throws SAXException
construct with a reference to the factory, and a processor
which can construct an object model from the SAX events
representing the stylesheet
endDocument
public void endDocument()
throws SAXException
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()
throws SAXException
SAX implementation: recieve notification of start of parse,
redirect all subsequent SAX events to our embedded object model
builder