XML technologies / DocBook / Block elements / Tasks
(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)
If a procedure (procedure) offers insufficient markup options, DocBook 4.3 and later provide the more extensive task element for marking up tasks.
A DocBook task includes not only procedures but also a summary, prerequisites and related information. The following example describes making tea.
Example: A task description
<task>
<title>Wie Sie guten Tee kochen</title>
<tasksummary>
<para>In dieser Aufgabe werden wir untersuchen, welche Komponenten für einen guten Tee benötigt werden.</para>
</tasksummary>
<taskprerequisites>
<title>Vorausetzungen</title>
<para>...</para>
<itemizedlist>
<listitem>
<para>Ein guter Tee.</para>
</listitem>
<listitem>
<para>Ein Teesieb.</para>
</listitem>
<listitem>
<para>Eine Teekanne mit Teegläser.</para>
</listitem>
<listitem>
<para>Falls gewünscht, Teezucker</para>
</listitem>
</itemizedlist>
</taskprerequisites>
<procedure>
<title>Tee kochen</title>
<step>
<para>Wählen Sie einen Tee aus</para>
</step>
<step>
<para>Fügen Sie pro Tasse einen Teelöffel Tee in das Teesieb.</para>
</step>
<step>
<para>Kochen Sie Wasser bis zum Siedepunkt. Wenn Sie grünen Tee zubereiten, lassen Sie das Wasser nach dem Sieden ca. 3 bis 5 Minuten abkühlen.</para>
</step>
<step>
<para>Wärmen Sie die Teekanne mit etwas kochendem Wasser vorher an.</para>
</step>
<step>
<para>Stellen Sie das Teesieb in Ihre Teekanne und übergießen Sie mit kochendem Wasser.</para>
</step>
<step>
<para>Lassen Sie den Tee ziehen. Je nach Teesorte und Intensität kann dies zwischen 3 bis 10 Minuten betragen.</para>
</step>
</procedure>
<taskrelated>
<title>Siehe auch</title>
<para>Weitere Informationen erhalten Sie in folgender Liste:</para>
<itemizedlist>...</itemizedlist>
</taskrelated>
</task>Line 1: Each task starts with task.
Line 3: Optional task summary.
Line 6: Optional prerequisites for the task.
Line 24: Procedures for completing the task.
Line 45: Optional information related to the task.
Sections can produce a similar result. However, it can be useful to distinguish seemingly unrelated sections from a task element. For this purpose, task groups all relevant information in one element.
Future DocBook 5 versions may allow the task element at the same level as a section element. Check this in the DocBook reference.
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