|
API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
List<? extends Source> getSchema(String namespace, List<String> locations, String baseURI)
namespace
and locations
.
It is recommended that each Source
object included in the returned
List
have its system id set. This allows the processor to identify
Source
objects that refer to the same schema and, in some cases,
avoid parsing the same schema more than once.
namespace
- The schema namespace. May be null if it was not
specified (indicating no namespace).locations
- The schema locations.baseURI
- The base URI.
null
to use the default resolution behaviour.
|
IBM Copyright 2004-2008 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |