XML technologies / DocBook / Customizing DocBook / Extending DocBook 4 / DocBook modules
(Excerpt from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" by Thomas Schraitle)
For well-known DTDs such as SVG or MathML DocBook 4 customization files already exist. Download them from DocBook.org. The following table lists the DocBook modules available when this book was written:
Table: Available extensions for DocBook 4
Module | File | Description |
Simplified DocBook | | Contains a limited set of DocBook elements. |
EBNF | | Provides the element |
HTML Forms | | Adds HTML form elements. |
MathML | | Adds MathML 2.0 elements to |
SVG | | Adds SVG 1.1 elements to |
For example, download the EBNF customization file from the URL above and create your XML document as follows:
<!DOCTYPE article SYSTEM "dbebnf.dtd">
<article> ... </article>Modules require a particular DocBook 4 version. To use another version, modify the file. Find the string <!--Include the DocBook DTD--> and, in the following entity declaration, replace version V4.3 with the desired version, such as V4.5.
If you prefer a public identifier for the customization file, the required string appears as a comment in dbebnf.dtd. Create the corresponding public entry in your XML catalog. This is left as an exercise.
Copyright © 2009 Millin Verlag
You may print the online version for your private use.
Otherwise, this chapter from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Millin Verlag, Siebengebirgsring 36, 53797 Lohmar, info(at)millin.de
back to top