SchemaResolver is a user-supplied class used for resolving references to
schema documents. It applies to references from one schema document to another
references from an instance document to a schema in
xsl:import-schema in XSLT, and to
import schema declaration in XQuery.
SchemaResolver returns null, then the system attempts to locate
a schema using the common resource resolver associated with the Saxon
It first attempts to resolve the location hint (if available), then the target namespace
(if present and non-empty). If both attempts fail, the system then attempts to use
standard URI resolution mechanisms to resolve the location hint (if available); it
not attempt to resolve the target namespace.
targetNamespace- The target namespace of the required schema components. In the case of
xs:override(where no target namespace is identified), the parameter is set to null. In the case of
xs:import, the parameter is set to the value of the
namespaceattribute if present, or to the zero-length string otherwise.
baseUri- The base URI of the module containing the reference to a schema document declaration
locationHint- The URI (if any) provided as a location hint: typically, the value of the
xs:import. Note: the
import schemadeclaration in XQuery permits several location hints; if there is more than one, all but the first are ignored
IResourcerepresenting the schema document to be loaded.