XML technologies / DocBook / Block elements / Index entries / Specialized indexes

(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)

The previous examples generated only one index. Some documents have several indexes, such as a name index to help readers find people. DocBook 4.3 and later can generate such indexes. All you need is the attribute type. Proceed as follows:

  1. Add a type attribute to <indexterm> for the entries that should appear together.

<indexterm type="namen">
   <primary>Walsh, Norman</primary>
</indexterm>

  1. Place an index at the desired location, usually at the end, and add a type attribute with the same content:

<index type="namen">
   <title>Namensregister</title>
   <!-- Keine Einträge! -->
</index>

The DocBook stylesheets automatically generate a separate index containing only entries with the same type attribute.

  

back to top