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.dtd and enables or disables the external parameter entity %rdbmods;; %intermod.redecl.module; is activated between loading the files dbpoolx.mod and dbhierx.mod.

%dbpool.redecl.module;

is in the file dbpoolx.dtd and 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.dtd and 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 file dbhierx.dtd and 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.

  

back to top