Creates an instance of a
CatalogResolver
using the specified feature settings and uri(s) to one or more catalog files.
If uris
is empty, system property javax.xml.catalog.files
, as defined in CatalogFeatures
, will be read to locate the initial list of catalog files.
If multiple catalog files are specified through the uris
argument or javax.xml.catalog.files
property, the first entry is considered the main catalog, while others are treated as alternative catalogs after those referenced by the nextCatalog
elements in the main catalog.
As specified in XML Catalogs, OASIS Standard V1.1 , if a catalog entry is invalid, it is ignored. In case all entries are invalid, the resulting CatalogResolver object will contain no valid catalog. Any resolution operation using the resolver therefore will return as no mapping is found. See CatalogResolver
for the behavior when no mapping is found.