XML technologies / DocBook / Customizing DocBook / Adding elements

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

Before adding a new element to DocBook, check whether it already exists or whether attributes of an existing element meet your needs.

First consider what the new element should achieve. Do you need a new list, a new hierarchy level or a new inline element? The implementation’s complexity depends on your requirements.

The following scenarios demonstrate inserting an element at different positions. The elements are not bound to a namespace so that older parsers can also process the examples.

Note: Customizing the DocBook stylesheets
For complete processing, you must also customize the DocBook stylesheets. Otherwise, you will receive an error message.

  

  

back to top