XML technologies / DocBook / Customizing DocBook / Extending DocBook 4 / Adding the CDList schema to DocBook 4
(Excerpt from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" by Thomas Schraitle)
To add the CDList schema, proceed as follows:
Where should the CDList elements appear?
Decide where to integrate CDList elements into the DocBookDTD. The element iscd:cd-collection, a candidate for block elements. Suitable choices include:%formal.class;(the level of equations, examples, figures and tables),%component.mix;(seedbpoolx.mod) and%divcomponent.mix;(seedbhierx.mod). This example uses the parameter entity%divcomponent.mix;.Creating the customization file
Create your customization file and first load the CDList DTD:
<!ENTITY % cd-dtd SYSTEM "cd.dtd">
%cd-dtd;Customizing
%divcomponent.mix;
Customize the parameter entity%divcomponent.mix;by overriding%local.divcomponent.mix;:
<!ENTITY % local.divcomponent.mix "|cd:cd-collection"> Load the DocBook DTD
Add the following lines to your customization file to load the DocBook DTD:
<!ENTITY % DocBookDTD PUBLIC
"-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.docbook.org/xml/4.5/docbookx.dtd">
%DocBookDTD;Using the customization file
Use the customization file instead of the original DocBook file (see Validating with a DocBook 4 customization file).
If you prefer public identifiers, define an identifier (PUBLIC, SYSTEM or both). You will also need an XML catalog to resolve your identifiers.
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