5.5. Example: Barebones DocBook

It's time to look at a larger, more complex application. Inspired by DocBook, the technical documentation markup language managed by the OASIS Group (http://www.oasis-open.org/docbook/index.html), we've developed a basic version to play with. For an example of a Barebones DocBook document, refer back to Section 2.9 in Chapter 2.

The DTD in Example 5.3 is marked up with callouts to comments listed at the end of the example.

Example 5.3. Barebones DocBook DTD
<!-- ================================================================== -->
<!--
     Barebones DocBook DTD Version 0.1
     Offered as a teaching tool, without any warranty whatsoever.

     Module dependencies: 
       1. Cals Table (XML) Version 1.0 by Norman Walsh
       2. ISO-8879 character entities

     Contact: Erik Ray <eray@oreilly.com>
-->

<!-- ================================================================== -->
<!--                       ATTRIBUTE GROUPS                             -->
<!--            Common attributes for list declarations.                -->
<!-- ================================================================== -->

<!ENTITY % common.atts " id ID #IMPLIED role CDATA #IMPLIED xml:space (default | preserve) 'default' ">
<!ENTITY % id.required.atts " id ID #REQUIRED renderas NMTOKEN #IMPLIED role CDATA #IMPLIED xml:space (default | preserve) 'default' "> <!-- ================================================================== ...

Get Learning XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.