XML Catalogs [JEP-268]
JEP 268, titled XML Catalogs, focused on creating a standard XML Catalog API to support the OASIS XML Catalogs Standard v1.1. The new API defines catalog and catalog-resolve abstractions so that JAXP processors can use them. In this section, we will look at the following:
- The OASIS XML Catalog standard
- JAXP processors
- XML Catalogs prior to Java 9
- Java 9 platform changes
The OASIS XML Catalog standard
XML (eXtensible Markup Language) Catalogs are XML documents consisting of catalog entries. Each entry pairs an identifier to another location. OASIS is a not-for-profit consortium with the mission of advancing open standards. They published the XML catalog standard, version 1.1., in 2005. This standard has two basic use cases:
- Map an external identifier to a URI reference
- Map a URI reference to another URI reference
Here is a sample XML catalog entry:
<public publicId="-//Packt Publishing Limited//Mastering Java 9//EN" uri="https://www.packtpub.com/application-development...