XML technologies / DocBook / Getting started with DocBook / Differences between DocBook 4 and 5
(Excerpt from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" by Thomas Schraitle)
This section explains the differences, partly adapted and expanded from The DocBook Schema Version 5.0, between the older and newer DocBook versions. It can be skipped if unnecessary. For details about elements and content models, see The Definitive Guide (replace the placeholder ELEMENT with the desired element name):
DocBook 4: | |
DocBook 5: | |
Differences between DocBook 4 and 5
- DocBook 5 now has a namespace
DocBook 5 elements belong to the namespace
"http://docbook.org/ns/docbook". Almost all current XML applications have their own namespace, making schemas easier to combine without element-name collisions.- Removing legacy features
Some elements were removed and replaced with simpler or more versatile alternatives.
Table: Element changes
Element(s)
The following table briefly compares the two official DocBook versions:
Table: Comparing DocBook 4 and DocBook 5
DocBook 4 | DocBook 5 | |
Official schema | ||
Other unofficial schemas | RELAX NG, W3C Schema | DTD, W3C Schema |
Documentation | ||
Schema type | grammar-based only | grammar- and rule-based |
weak | through W3C datatypes | |
Future development | frozen; bug fixes only | under continued development |
Own namespace? | no | yes |
ISO entities | yes | no, but can be loaded separately |
no | yes | |
no | yes | |
Schematron | no | yes |
Customization method | Definition patterns | |
Customization difficulty | more difficult | easier |
Namespace support | no | yes |
Reference in the instance document | DOCTYPE declaration | not required for RELAX NG |
Version identification | through a DOCTYPE declaration | through the attribute |
Anchor attribute | | |
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