public interface URIResolver
An object that implements this interface that can be called by the processor to turn a URI used in document(), xsl:import, or xsl:include into a Source object.
Modifier and Type | Method and Description |
---|---|
Source |
resolve(java.lang.String href, java.lang.String base)
Called by the processor when it encounters an xsl:include, xsl:import, or document() function.
|
Source resolve(java.lang.String href, java.lang.String base) throws TransformerException
href
- An href attribute, which may be relative or absolute.base
- The base URI in effect when the href attribute was encountered.TransformerException
- if an error occurs when trying to resolve the URI.