XML technologies / DocBook / Block elements / Lists / Numbered lists (orderedlist)
(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)
Unlike bulleted lists, each entry is numbered. The numbering style can also be specified by the attribute numeration on the element orderedlist. It accepts the values arabic (Arabic numerals), loweralpha (lowercase letters), lowerroman (lowercase Roman numerals), upperalpha (uppercase letters) and upperroman (uppercase Roman numerals).
Example: Structure of a numbered list (orderedlist.xml)
<orderedlist>
<listitem>
<para>Erster Punkt</para>
</listitem>
<listitem>
<para>Zweiter Punkt</para>
</listitem>
</orderedlist>To resume numbering after an interrupted list, use the attribute continuation:
<orderedlist>
<listitem>
<para>Ein Listenpunkt</para>
</listitem>
<listitem>
<para>Ein anderer</para>
</listitem>
</orderedlist>
<para>Etwas anderes dazwischen</para>
<orderedlist continuation="continues">
<listitem>
<para>Ein weiterer Listenpunkt</para>
</listitem>
<listitem>
<para>Noch ein weiterer Listenpunkt</para>
</listitem>
</orderedlist>Result:
Ein Listenpunkt
Ein anderer
Etwas anderes dazwischen
Ein weiterer Listenpunkt
Noch ein weiterer Listenpunkt
Nested numbered lists often use a format such as "2.4". To achieve this, use the attribute inheritnum with the value inherit (again on the element orderedlist).
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