com.ibm.xml.xapi
Interface XSchemaResolver
- public interface XSchemaResolver
Implement this class to override the default schema resolution behaviour.
Implementations should be registered with the XFactory and are used
to resolve imports for schemas that are registered with the XFactory
using the registerSchema
method as well schemas that
are imported in XSLT using the xsl:import-schema
declaration.
The default behaviour for resolving imports within a schema is to use the
base URI of the schema to resolve the imported schema's location. The default
behaviour for XSLT schema imports is to use the base URI of the xsl:import-schema
declaration to resolve the location specified in the declaration.
See Also:
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getSchema(java.lang.String namespace,java.util.List<java.lang.String> locations,java.lang.String baseURI)
Get the schemas for the given
namespace and locations .
|
Method Detail
getSchema
- java.util.List<? extends javax.xml.transform.Source> getSchema( java.lang.String namespace,
- java.util.List<java.lang.String> locations,
- java.lang.String baseURI)
Parameters:
namespace
- The schema namespace. May be null if it was not
specified (indicating no namespace). locations
- The schema locations. baseURI
- The base URI. Returns:
The schemas for the given namespace and locations or
null
to use the default resolution behaviour.
namespace
andlocations
. It is recommended that eachSource
object included in the returnedList
have its system id set. This allows the processor to identifySource
objects that refer to the same schema and, in some cases, avoid parsing the same schema more than once.