XML technologies / DocBook / XML catalogs / Replacing URIs

(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)

If you have many files sharing a common URI, use rewriteSystem. This element replaces the beginning of a system identifier with a prefix. For example:

<rewriteSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl/" rewritePrefix="file:///usr/share/xml/docbook/xsl/" />

When the URI "http://docbook.sourceforge.net/release/xsl/current/docbook.xsl" is recognized, the string from systemIdStartString is replaced with the value of rewritePrefix, giving /usr/share/xml/docbook/xsl/current/docbook.xsl. The same applies to other files under "http://docbook.sourceforge.net/release/xsl/".

  

back to top