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.
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