XML technologies / DocBook / Block elements / Procedures

(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)

The element procedure defines a procedure for operations that readers must perform in a specific order. A procedure consists of steps (step) and, if needed, substeps (substeps). Mark up alternative steps with stepalternatives.

Procedures often require prerequisites. DocBook provides no explicit markup for them here; include them in the steps or use task (see Exercises).

Example: A procedure

<procedure>
 <title>Eine imaginäre Aufgabe</title>
 <step>
   <para>Der erste Schritt.</para>
   <substeps>
     <step><para>Der erste Unterschritt.</para></step>
     <step><para>Der zweite Unterschritt.</para></step>
   </substeps>
 </step>
 <step performance="optional">
   <para>Der zweite Schritt.</para>
 </step>
</procedure>

Line 2: Optional title
Line 4: A step in the procedure
Line 5: For finer subdivisions, use substeps.
Line 10: Indicates whether a step is required (required) or optional (optional)

Note: Prefer fewer than 10 steps
Although DocBook does not limit the number of steps, a maximum of 10 is recommended to keep procedures clear. If you need more, reconsider the steps and either structure them with substeps or move them into sections.

  

back to top