The Crash Course to DocBook

6.5. The segmentedlist

segmentedlists are used to list information in distinct fields like the contents of an address book. The name of each field is put inside of a <segtitle> tag. Then, use the <seglistitem> tag to start and end each set of data. The actual data is put in the <seg> tag.

Example 6-5. A segmentedlist


<segmentedlist>
<segtitle>Name</segtitle>
<segtitle>Occupation</segtitle>
<segtitle>Favorite Food</segtitle>
<seglistitem>
<seg>Tux</seg>
<seg>Linux mascot</seg>
<seg>Herring</seg>
</seglistitem>
<seglistitem>
<seg>Konqui</seg>
<seg>The KDE Dragon</seg>
<seg>Gnomes</seg>
</seglistitem>
</segmentedlist>
 

This silly example looks something like this when converted:

Name: Tux

Occupation: Linux mascot

Favorite Food: Herring

Name: Konqui

Occupation: The KDE Dragon

Favorite Food: Gnomes