XML technologies / DocBook / Customizing DocBook / DocBook 4 structure / Redeclaration placeholders
(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)
The DocBookDTD allows docbookx.dtd to contain redeclaration placeholders. These reference files loaded through external parameter entities. They are empty and disabled by default. Redeclaration placeholders let you insert code at positions where previously declared parameter entities are available. The following placeholders exist:
%intermod.redecl.module;is in the file
docbookx.dtdand enables or disables the external parameter entity%rdbmods;;%intermod.redecl.module;is activated between loading the filesdbpoolx.modanddbhierx.mod.%dbpool.redecl.module;is in the file
dbpoolx.dtdand enables or disables the external parameter entity%rdbpool;. It holds declarations of modules, elements, attributes and%*.mix;parameter entities.-
%dbhier.redecl.module; is in the file
dbhierx.dtdand enables or disables the external parameter entity%rdbhier;. It holds declarations of hierarchical elements, attributes or entire modules.%dbhier.redecl2.module;Like
%dbhier.redecl.module;this is also in the filedbhierx.dtdand enables or disables the external parameter entity%rdbhier2;. It inserts later hierarchical declarations into%rdbhier;.
To use these features, first enable the switch at the appropriate position and make the corresponding external parameter entity %rdb*; reference a file containing your declarations:
<!ENTITY % dbpool.redecl.module "INCLUDE">
<!ENTITY % rdbpool SYSTEM "my-rdbpool.mod">These declarations automatically load the file my-rdbpool.mod within DocBook.
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