javax.xml.transform
Interface URIResolver
public interface URIResolver
Callback that can resolve a URI into source XML for transformation.
Equivalent to the SAX EntityResolver.
resolve
Source resolve(String href,
String base)
throws TransformerException
- Resolves an
xsl:include
, xsl:import
, or
XPath document()
function.
- Parameters:
href
- the URI to resolve (relative or absolute)base
- the base URI relative to which the URI is to be resolved
- Returns:
- a source, or null if the resource could not be found
- Throws:
TransformerException