Catalog Syntax

A catalog is just an XML document in the syntax defined by the OASIS XML Catalogs standard (http://www.oasis-open.org/committees/entity/specs/cs-entity-xml-catalogs-1.0.html). The root element of this document is catalog, which is in the urn:oasis:names:tc:entity:xmlns:xml:catalog namespace. The catalog element contains public elements that remap public IDs and system elements that remap system IDs. Example 47-1 shows a simple catalog that maps the public ID for DocBook to a file in the local file system.

Example 47-1. A Catalog Document
 <?xml version="1.0"?> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> <public publicId="-//OASIS//DTD DocBook XML V4.2//EN" uri="file:///opt/xml/docbook/docbookx.dtd"/> </catalog> ...

Get Effective XML: 50 Specific Ways to Improve Your XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.