public class LSSchemaResolver extends Object implements SchemaURIResolver
| Constructor and Description |
|---|
LSSchemaResolver(LSResourceResolver resolver,
Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
Source[] |
resolve(String targetNamespace,
String baseURI,
String[] locations)
Resolve a URI identifying a schema document, given the target namespace URI and
a set of associated location hints.
|
void |
setConfiguration(Configuration config)
Set the configuration information for use by the resolver
|
public LSSchemaResolver(LSResourceResolver resolver, Configuration config)
public void setConfiguration(Configuration config)
setConfiguration in interface SchemaURIResolverconfig - the Saxon Configuration (which will always be an EnterpriseConfiguration)public Source[] resolve(String targetNamespace, String baseURI, String[] locations) throws XPathException
resolve in interface SchemaURIResolvertargetNamespace - the target namespaces of the module to be imported. The "null namesapce"
is identified by a zero-length string. In the case of an xsd:include directive, where no
target namespace is specified, the parameter is null.baseURI - The base URI of the module containing the "import schema" declaration;
null if no base URI is knownlocations - The set of URIs identified as schema location hints. In most cases (xsd:include, xsd:import,
xsi:schemaLocation, xsl:import-schema) there is only one URI in this list. With an XQuery "import module"
declaration, however, a list of URIs may be specified.XPathException - if the module cannot be located, and if delegation to the default
module resolver is not required.Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.