Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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.
The OASIS Entity Resolution Technical Committee maintains a FAQ.
XML Catalog software
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.
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:
The resolver.jar file in the Resolver distribution is actually the only thing you need (you can safely ignore the rest of the stuff).
The original Sun package names were different from the ones used in the Apache Commons version. This only concerns users who want to move from the Sun version to the Apache version.
- Understanding Catalog Files: outlines the XML Catalogs file format
- Controlling the Catalog Resolver: explains how to set configuration properties for the Resolver classes
- Using Catalogs with Popular Applications: explains how to use the Resolver classes with Saxon, Xalan, XP, and XT
This chapter in the Ant manual explains how to use XML catalogs in Ant build files.