|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This version of URIResolver reflects the proposal made by Michael Kay to revise the interface as defined in TRAX 0.6.
An interface that can be called by the processor to for turning the URIs used in document() and xsl:import etc into an InputSource or a Node if the processor supports the "http://xml.org/trax/features/dom/input" feature.
Node that the URIResolver is stateful (it remembers the most recent URI) so separate instances must be used in each thread.
Method Summary | |
org.w3c.dom.Node |
getDOMNode()
This will be called by the processor when it encounters an xsl:include, xsl:import, or document() function, if it needs a DOM tree. |
org.xml.sax.InputSource |
getInputSource()
This will be called by the processor when it encounters an xsl:include, xsl:import, or document() function, if it needs a SAX InputSource. |
java.lang.String |
getURI()
Get the absolute URI. |
org.xml.sax.XMLReader |
getXMLReader()
This method returns the SAX2 parser to use with the InputSource obtained from this URI. |
void |
setURI(java.lang.String base,
java.lang.String uri)
This will be called by the processor when it encounters an xsl:include, xsl:import, or document() function. |
Method Detail |
public void setURI(java.lang.String base, java.lang.String uri) throws TransformException
base
- The base URI that should be used.uri
- Value from an xsl:import or xsl:include's href attribute,
or a URI specified in the document() function.public java.lang.String getURI()
public org.w3c.dom.Node getDOMNode() throws TransformException
public org.xml.sax.InputSource getInputSource() throws TransformException
public org.xml.sax.XMLReader getXMLReader() throws TransformException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |