net.sf.saxon.query
public interface ModuleURIResolver extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
javax.xml.transform.stream.StreamSource[] |
resolve(java.lang.String moduleURI,
java.lang.String baseURI,
java.lang.String[] locations)
Resolve a identifying a query module, given the identifying URI and
a set of associated location hints.
|
javax.xml.transform.stream.StreamSource[] resolve(java.lang.String moduleURI, java.lang.String baseURI, java.lang.String[] locations) throws XPathException
moduleURI
- the module URI of the module to be imported; or null when
loading a non-library module.baseURI
- The base URI of the module containing the "import module" declaration;
null if no base URI is knownlocations
- The set of URIs specified in the "at" clause of "import module",
which serve as location hints for the moduleInputStream
or an Reader
representing the text of the module.
The method may also return null, in which case the system attempts to resolve the URI using the
standard module URI resolver. The contained InputStream or Reader must be positioned at the start of the
content to be read; it will be consumed by the system and will be closed after use.XPathException
- if the module cannot be located, and if delegation to the default
module resolver is not required.