net.sf.saxon
Class TemplatesHandlerImpl
- ContentHandler, DTDHandler, LexicalHandler, TemplatesHandler
public class TemplatesHandlerImpl
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.
String | getSystemId() - Get the systemId of the document
|
Templates | getTemplates() - Get the Templates object to used for a transformation
|
void | setDocumentLocator(Locator locator) - Callback interface for SAX: not for application use
|
void | setSystemId(String url) - Set the SystemId of the document.
|
characters , comment , endCDATA , endDTD , endDocument , endElement , endEntity , endPrefixMapping , getConfiguration , getPipelineConfiguration , ignorableWhitespace , isIgnoringIgnorableWhitespace , notationDecl , processingInstruction , reset , setDocumentLocator , setIgnoreIgnorableWhitespace , setPipelineConfiguration , setReceiver , skippedEntity , startCDATA , startDTD , startDocument , startElement , startEntity , startPrefixMapping , unparsedEntityDecl |
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
config
- the Saxon configuration
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. Note that if this method is called, any locator supplied
to the setDocumentLocator() method is ignored. This also means that no line number information
will be available.
url
- the system ID (base URI) of the stylesheet document, which will be used in any error
reporting and also for resolving relative URIs in xsl:include and xsl:import. It will also form
the static base URI in the static context of XPath expressions.