XML technologies / DocBook / XML catalogs / Delegating URIs

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

The delegation mechanism is related to modularization but much more powerful.

Parts of a public identifier or URI can be recognized and the identifier passed to another catalogue. Here is an excerpt:

<delegatePublic publicIdStartString="-//OASIS//DTD DocBook XML" catalog="file:///usr/share/xml/docbook.xml"/>
<delegateSystem systemIdStartString="http://www.beispiel.org/" catalog="file:///usr/share/xml/beispiel.xml"/>

The element delegatePublic identifies all public identifiers starting with the string -//OASIS//DTD DocBook XML. Once matched, the identifier is passed to the catalogue file /usr/share/xml/docbook.xml specified by the attribute catalog. A system identifier can be handled similarly using the element delegateSystem and the catalogue file /usr/share/xml/beispiel.xml .

The following public identifiers are recognized by the element delegatePublic:

-//OASIS//DTD DocBook XML V4.4//EN
-//OASIS//DTD DocBook XML V4.1.2//EN

The following public identifiers are not recognized by the element above:

-//OASIS//ENTITIES DocBook Notations V4.2//EN
-//OASIS//ELEMENTS DocBook Document Hierarchy V4.2//EN
-//OASIS//DTD XML Exchange Table Model 19990315//EN

  

back to top