com.icl.saxon

Class StandardURIResolver

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

Constructor Summary
protected StandardURIResolver()
StandardURIResolver(TransformerFactoryImpl factory)
Method Summary
Sourceresolve(String href, String base)
Resolve a URI

Constructor Detail

StandardURIResolver

protected StandardURIResolver()

StandardURIResolver

public StandardURIResolver(TransformerFactoryImpl factory)

Method Detail

resolve

public Source resolve(String href, String base)
Resolve a URI

Parameters: baseURI The base URI that should be used. May be null if uri is absolute.

Returns: a Source object representing an XML document

UNKNOWN: uri The relative or absolute URI. May be an empty string. May contain a fragment identifier starting with "#", which must be the value of an ID attribute in the referenced XML document.