XML technologies / DocBook / Block elements / Lists / Segmented list (segmentlist)
(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)
A segmented list consists of an optional title (title), one or more terms (segtitle) and the corresponding set of entries (seglistitem). Each entry has as many ‘segments’ (seg) as there are segtitle elements.
<segmentedlist>
<title>Berühmte Maskottchen</title>
<segtitle>Name</segtitle>
<segtitle>als</segtitle>
<seglistitem>
<seg>Tux</seg>
<seg>Linux-Maskottchen</seg>
</seglistitem>
<seglistitem>
<seg>Konqi</seg>
<seg>Der KDE-Drache</seg>
</seglistitem>
<seglistitem>
<seg>Roberta</seg>
<seg>Die Killerrobbe ;-)</seg>
</seglistitem>
</segmentedlist>A segmented list is very flexible: it can appear as a list, similar to a glossary or definition list, or as a table-like structure. The code above would look roughly as follows:
Berühmte Maskottchen
Name: Tux
als: Linux-Maskottchen
Name: Konqi
als: Der KDE-Drache
Name: Roberta
als: Die Killerrobbe ;-)
The colons are inserted automatically. A segmented list can also appear as a table:
Berühmte Maskottchen
Name |
| als |
|---|---|---|
Tux |
| Linux-Maskottchen |
Konqi |
| Der KDE-Drache |
Roberta |
| Die Killerrobbe ;-) |
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