When to use XML Catalogs
To validate an XML Document against a schema (DTD, Relax NG Schema, Schematron, or XSD), you need to associate your XML Document with the schema, for example:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE topic SYSTEM "http://docs.oasis-open.org/dita/v1.0.1/dtd/topic.dtd">
<topic>
</topic>
This tells XMLBlueprint to validate the XML Document against DTD "http://docs.oasis-open.org/dita/v1.0.1/dtd/topic.dtd".
When validating this document, XMLBlueprint has to access the Internet to find the specified DTD. This might be slow or even impossible depending on the quality of your Internet access. XML Catalogs offers a solution for this probem, without having to change the document.
Using XML Catalogs, you can
|
• | Map a public identifier to a URL. For example, map "-//OASIS//DTD DITA Topic//EN" to "file:///C:/MyDTDs/docs.oasis-open.org/dita/v1.0.1/dtd/topic.dtd". |
• | Remap a URL to another one. For example, map "http://docs.oasis-open.org/dita/v1.0.1/dtd/topic.dtd" to "file:///C:/MyDTDs/docs.oasis-open.org/dita/v1.0.1/dtd/topic.dtd". |
XMLBlueprint supports OASIS XML Catalogs version 1.0 and 1.1. For more information on XML Catalogs, please visit: