O'Reilly logo

Effective XML: 50 Specific Ways to Improve Your XML by Elliotte Rusty Harold

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Item 47. Catalog Common Resources

Many XML processes use system IDs (in practice, URLs) to locate the standard DTDs, schemas, stylesheets, and other supporting files for applications like DocBook, XHTML, and SVG. However, this can put quite a load on the central server, and it means your application may have to wait on a potentially slow remote server you don't control. You might not even be able to process your documents when the central server is down due to hardware failure, a system crash, or network outages. Alternatively, you can use XML catalogs to remap public IDs and URLs. A catalog can convert public IDs like -//OASIS//DTD DocBook XML V4.2//EN into absolute URLs like http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd. It can replace ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required