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:

  1. Ein Listenpunkt

  2. Ein anderer

  3. Etwas anderes dazwischen

  4. Ein weiterer Listenpunkt

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

  

back to top