XML technologies / DocBook / Block elements / Index entries / Simple index entries

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

Simple index entries are the most common entries and require no special emphasis.

Mark up an index entry with primary. It can have up to two further subentry levels, using the elements secondary and tertiary. For references within the index, use seealso or see. The content of seealso names another index entry that readers should consult in addition. By contrast, see indicates that the information is available only under another entry. The following example illustrates this.

Example: Structure of simple index entries

<para>DocBook ist ein XML-Format <indexterm><primary>XML</primary><secondary>DocBook</secondary></indexterm> und wird häufig für Howtos <indexterm><primary>Howto</primary><secondary>Format</secondary><tertiary>DocBook-Format</tertiary></indexterm><indexterm><primary>DocBook</primary><seealso>Howtos</seealso></indexterm> verwendet.</para>

The example creates three index entries: DocBook, XML and Howtos. DocBook also references Howtos. The index looks like this:

DocBook
siehe auch Howtos

Howtos
- Format
* DocBook

XML
- DocBook

The stylesheets determine index formatting: (X)HTML uses links, while printed works show page numbers. Index entries never appear in the text where they are anchored; they only create references in the index.

  

back to top