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 ;-)

  

back to top