org.apache.xml.resolver.helpers
Class BootstrapResolver
- EntityResolver, URIResolver
public class BootstrapResolver
implements EntityResolver, URIResolver
A simple bootstrapping resolver.
This class is used as the entity resolver when reading XML Catalogs.
It searches for the OASIS XML Catalog DTD, Relax NG Grammar and W3C XML Schema
as resources (e.g., in the resolver jar file).
If you have your own DTDs or schemas, you can extend this class and
set the BootstrapResolver in your CatalogManager.
static String | xmlCatalogPubId - Public identifier for OASIS XML Catalog files.
|
static String | xmlCatalogRNG - URI of the RELAX NG Grammar for OASIS XML Catalog files.
|
static String | xmlCatalogSysId - System identifier for OASIS XML Catalog files.
|
static String | xmlCatalogXSD - URI of the W3C XML Schema for OASIS XML Catalog files.
|
Source | resolve(String href, String base) - Transformer resolve API.
|
InputSource | resolveEntity(String publicId, String systemId) - SAX resolveEntity API.
|
xmlCatalogPubId
public static final String xmlCatalogPubId
Public identifier for OASIS XML Catalog files.
xmlCatalogRNG
public static final String xmlCatalogRNG
URI of the RELAX NG Grammar for OASIS XML Catalog files.
xmlCatalogSysId
public static final String xmlCatalogSysId
System identifier for OASIS XML Catalog files.
xmlCatalogXSD
public static final String xmlCatalogXSD
URI of the W3C XML Schema for OASIS XML Catalog files.
BootstrapResolver
public BootstrapResolver()
Constructor.
resolve
public Source resolve(String href,
String base)
throws TransformerException
Transformer resolve API.
resolveEntity
public InputSource resolveEntity(String publicId,
String systemId)
SAX resolveEntity API.
Copyright B) 2001-2003 Apache Software Foundation. All Rights Reserved.