Saxon.Api
Interface IQueryResolver
-
public interface IQueryResolver
Interface defining a user-supplied class used to retrieve XQuery library modules listed
in an import module declaration in the query prolog.
Method Summary |
|
|---|---|
| object | GetEntity(Uri absoluteUri)
Dereference a URI returned by |
| Uri[] | GetModules(string moduleUri, Uri baseUri, string[] locationHints) Given a module URI and a set of location hints, return a set of query modules. |
Method Detail
GetModules
Given a module URI and a set of location hints, return a set of query modules.
Parameters:
moduleUri - The URI of the required library module as written in the
import module declarationbaseUri - The base URI of the module containing the import module
declarationlocationHints - The sequence of URIs (if any) listed as location hints
in the import module declaration in the query prolog.Returns:
A set of absolute URIs identifying the query modules to be loaded. There is no requirement
that these correspond one-to-one with the URIs defined in the
locationHints. The
returned URIs will be dereferenced by calling the GetEntity method.
Dereference a URI returned by
GetModulesto retrieve aStreamcontaining the actual query text.Parameters:
absoluteUri- A URI returned by theGetModulesmethod.Returns:
Streamor aStringcontaining the query text. The supplied URI will be used as the base URI of the query module.