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

sdocbook.dtd

Contains a limited set of DocBook elements.

EBNF

dbebnf.dtd

Provides the element productionset for creating EBNF production rules. See also Production rules (EBNF).

HTML Forms

dbforms.dtd

Adds HTML form elements.

MathML

dbmathml.dtd

Adds MathML 2.0 elements to equation and informalequation. See also DocBook and MathML.

SVG

dbsvg.dtd

Adds SVG 1.1 elements to imageobject.

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.

  

back to top