Package 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StandardURIResolver()
StandardURIResolver(TransformerFactoryImpl factory)
-
-
-
Constructor Detail
-
StandardURIResolver
protected StandardURIResolver()
-
StandardURIResolver
public StandardURIResolver(TransformerFactoryImpl factory)
-
-
Method Detail
-
resolve
public Source resolve(String href, String base) throws TransformerException
Resolve a URI- Specified by:
resolve
in interfaceURIResolver
- 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
-
-