O'Reilly logo

Learning XML by Erik T. Ray

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

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' "> <!-- ================================================================== ...

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