com.icl.saxon
Class StandardURIResolver
java.lang.Object
com.icl.saxon.StandardURIResolver
- All Implemented Interfaces:
- URIResolver
public class StandardURIResolver
- extends Object
- implements URIResolver
This class provides the service of converting a URI into an InputSource.
It is used to get stylesheet modules referenced by xsl:import and xsl:include,
and source documents referenced by the document() function. The standard version
handles anything that the java URL class will handle.
You can write a subclass to handle other kinds of URI, e.g. references to things in
a database.
- Author:
- Michael H. Kay
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardURIResolver
protected StandardURIResolver()
StandardURIResolver
public StandardURIResolver(TransformerFactoryImpl factory)
resolve
public Source resolve(String href,
String base)
throws TransformerException
- Resolve a URI
- Specified by:
resolve
in interface URIResolver
- Parameters:
baseURI
- The base URI that should be used. May be null if uri is absolute.
- Returns:
- a Source object representing an XML document
- Throws:
TransformerException