Saxon.Api

Class DocumentBuilder

Class DomDestination

Class DynamicContext

Class DynamicError

Class EmptyEnumerator

Class ExtensionFunctionCall

Class ExtensionFunctionDefinition

Class InvalidityHandlerWrapper

Class NamespaceConstant

Class NullDestination

Class Processor

Class QName

Class SchemaManager

Class SchemaValidator

Class Serializer

Class StandardLogger

Class StaticContext

Class StaticError

Class TextWriterDestination

Class WhitespacePolicy

Class XPathCompiler

Class XPathExecutable

Class XPathSelector

Class XQueryCompiler

Class XQueryEvaluator

Class XQueryExecutable

Class XdmAnyFunctionType

Class XdmAnyItemType

Class XdmAnyNodeType

Class XdmArray

Class XdmAtomicType

Class XdmAtomicValue

Class XdmDestination

  - Class TreeProtector

Class XdmEmptySequence

Class XdmExternalObjectValue

Class XdmFunctionItem

Class XdmItem

Class XdmItemType

Class XdmMap

Class XdmNode

Class XdmNodeKind

Class XdmSequenceType

Class XdmValue

Class XmlDestination

Class Xslt30Transformer

Class XsltCompiler

Class XsltExecutable

  - Class ParameterDetails

Class XsltPackage

Class XsltTransformer

Enum RecoveryPolicy

Enum SchemaValidationMode

Enum TreeModel

Enum XdmAxis

Interface IInvalidityHandler

Interface IMessageListener

Interface IQueryResolver

Interface IResultDocumentHandler

Interface IXdmEnumerator

Interface IXmlLocation

Interface SchemaResolver

 

Saxon.Api
Interface IQueryResolver


public interface IQueryResolver
implements object

Interface defining a user-supplied class used to retrieve XQuery library modules listed in an import module declaration in the query prolog.


Method Summary
 Uri[] GetModules(string moduleUri, System.Uri baseUri, System.String[] locationHints)

Given a module URI and a set of location hints, return a set of query modules.

 Object GetEntity(System.Uri absoluteUri)

Dereference a URI returned by GetModules to retrieve a Stream containing the actual query text.

 
Method Detail

GetModules

public Uri[] GetModules(string moduleUri,
System.Uri baseUri,
System.String[] locationHints)

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 declaration
baseUri -
The base URI of the module containing the import module declaration
locationHints -
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.

GetEntity

public Object GetEntity(System.Uri absoluteUri)

Dereference a URI returned by GetModules to retrieve a Stream containing the actual query text.

Parameters:
absoluteUri -
A URI returned by the GetModules method.
Returns:
Either a Stream or a String containing the query text. The supplied URI will be used as the base URI of the query module.