March 2005
Beginner to intermediate
1254 pages
104h 21m
English
TemplatesHandler
This interface extends
org.xml.sax.ContentHandler and adds a
getTemplates( ) method. An object that implements
this interface can be used to receive method calls from some source
of SAX events and process those events (as a XSL stylesheet) into a
Templates object. Obtain a
TemplatesHandler from a
SAXTransformerFactory. Register it with the
setContentHandler( ) method of an
org.xml.sax.XMLReader and invoke the
parse( ) method of the reader. When
parse( ) returns, call the getTemplates(
) method to obtain the Templates object.
Figure 20-14. javax.xml.transform.sax.TemplatesHandler
public interface TemplatesHandler extends org.xml.sax.ContentHandler { // Public Instance Methods String getSystemId( ); javax.xml.transform.Templates getTemplates( ); void setSystemId(String systemID); }
SAXTransformerFactory.newTemplatesHandler( )
Read now
Unlock full access