API

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:
XFactory.setSchemaResolver(XSchemaResolver)

Method Summary
 List<? extends Source> getSchema(String namespace, List<String> locations, String baseURI)
          Get the schemas for the given namespace and locations.
 

Method Detail

getSchema

List<? extends Source> getSchema(String namespace,
                                 List<String> locations,
                                 String baseURI)
Get the schemas for the given namespace and locations.

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.

IBM Copyright 2004-2008