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.
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