Overview, how-to, examples, and resources

XML catalogs are used to make an XML parser or an XSLT engine "catalog aware", so that it will always use local copies of DTDs or XSLT stylesheets -- without you needing to hard-code local paths in all your documents and stylesheets.

As part of his book DocBook XSL: The Complete Guide, BobStayton has written some detailed how-to information on using XML catalogs with DocBook. That should be your first stop.

DanielVeillard (creator of libxml2 and the xsltproc XSLT engine) has written an excellent XML Catalog introduction.

The XML Catalogs specification is an OASIS standard.

The OASIS Entity Resolution Technical Committee maintains a FAQ.

XML Catalog software

libxml2

XML Catalogs are fully supported in libxml2. The distribution includes a command-line utility, xmlcatalog, for creating, parsing, and manipulating XML Catalog files (as well as SGML Open/OASIS catalog files). There is also a specific shell script for generating XML Catalogs for DocBook 4.1.2, as well as a tar file with some ready-made XML Catalogs for DocBook.

Java resolver

NormanWalsh developed Java Resolver classes at Sun Microsystems and later contributed them to the xml-commons area of the Apache XML project. The Resolver classes enable you to use XML catalogs with XML applications (such as XSLT engines) written in Java.

A few things to note:

If you want to get started using XML Catalogs with Saxon or another XSLT engine, then read Norm's XML Entity and URI Resolvers article. It includes:

This chapter in the Ant manual explains how to use XML catalogs in Ant build files.

DocBookAndXmlCatalogs (last edited 2007-01-06 20:11:20 by MauritzJeanson)