| 1 | <refentry id="procedure.element"> |
| 2 | <?dbhtml filename="procedure.html"?> |
| 3 | <refentryinfo> |
| 4 | <pubdate>$Date$</pubdate> |
| 5 | <releaseinfo>$Revision$</releaseinfo> |
| 6 | </refentryinfo> |
| 7 | |
| 8 | <refmeta> |
| 9 | <indexterm><primary>elements</primary> |
| 10 | <secondary>procedure</secondary></indexterm> |
| 11 | <refentrytitle>procedure</refentrytitle> |
| 12 | <refmiscinfo>Element</refmiscinfo> |
| 13 | </refmeta> |
| 14 | <refnamediv> |
| 15 | <refname>procedure</refname> |
| 16 | <refpurpose>&procedure.purpose;</refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | &procedure.synopsis.gen; |
| 20 | <refsect1 condition='ref.description'><title>Description</title> |
| 21 | |
| 22 | <para> |
| 23 | A <sgmltag>Procedure</sgmltag> encapsulates a task composed of <sgmltag>Step</sgmltag>s |
| 24 | (and possibly, <sgmltag>SubSteps</sgmltag>). Procedures are usually performed |
| 25 | sequentially, unless individual <sgmltag>Step</sgmltag>s direct the reader |
| 26 | explicitly. |
| 27 | </para> |
| 28 | |
| 29 | <para> |
| 30 | Often it is important to assure that certain conditions exist before |
| 31 | a procedure is performed, and that the outcome of the procedure matches |
| 32 | the expected results. DocBook does not provide explicit semantic markup |
| 33 | for these pre- and post-conditions. Instead, they must be described as |
| 34 | steps (check the pre-conditions in the first step and the results in the |
| 35 | last step), or described outside the body of the procedure. |
| 36 | </para> |
| 37 | |
| 38 | <refsect2><title>Processing expectations</title> |
| 39 | <para> |
| 40 | &format.block; |
| 41 | </para> |
| 42 | </refsect2> |
| 43 | |
| 44 | |
| 45 | |
| 46 | &procedure.parents.gen; |
| 47 | &procedure.children.gen; |
| 48 | </refsect1> |
| 49 | <refsect1><title>Examples</title> |
| 50 | |
| 51 | <informalexample role="example-source"> |
| 52 | <programlisting>&procedure.example.1.txt;</programlisting> |
| 53 | </informalexample> |
| 54 | |
| 55 | <anchor id="ex.os.procedure.1" role="HACK-ex.out.start"/> |
| 56 | &procedure.example.1.gen; |
| 57 | <anchor id="ex.oe.procedure.1" role="HACK-ex.out.end"/> |
| 58 | |
| 59 | &procedure.example.seealso.gen; |
| 60 | </refsect1> |
| 61 | </refentry> |
| 62 |