| 1 | <refentry id="group.element"> |
| 2 | <?dbhtml filename="group.html"?> |
| 3 | <refentryinfo> |
| 4 | <pubdate>$Date$</pubdate> |
| 5 | <releaseinfo>$Revision$</releaseinfo> |
| 6 | </refentryinfo> |
| 7 | |
| 8 | <refmeta> |
| 9 | <indexterm><primary>elements</primary> |
| 10 | <secondary>group</secondary></indexterm> |
| 11 | <refentrytitle>group</refentrytitle> |
| 12 | <refmiscinfo>Element</refmiscinfo> |
| 13 | </refmeta> |
| 14 | <refnamediv> |
| 15 | <refname>group</refname> |
| 16 | <refpurpose>&group.purpose;</refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | &group.synopsis.gen; |
| 20 | <refsect1 condition='ref.description'><title>Description</title> |
| 21 | |
| 22 | <para> |
| 23 | A <sgmltag>Group</sgmltag> surrounds several related items. Usually, they are |
| 24 | grouped because they are mutually exclusive. The user is expected to select |
| 25 | one of the items. |
| 26 | </para> |
| 27 | |
| 28 | <refsect2><title>Processing expectations</title> |
| 29 | <para> |
| 30 | &format.inline; The additional processing expectations of a |
| 31 | <sgmltag>Group</sgmltag> are significant. For a complete discussion, |
| 32 | see <sgmltag>CmdSynopsis</sgmltag>. |
| 33 | </para> |
| 34 | <itemizedlist> |
| 35 | <listitem><para> |
| 36 | Multiple arguments within a group are considered exclusive and are |
| 37 | separated by vertical bars. |
| 38 | </para></listitem> |
| 39 | <listitem><para> |
| 40 | Brackets are used to distinguish between optional, required, or plain |
| 41 | arguments. Usually square brackets are placed around optional |
| 42 | arguments, <option>[-f | -g]</option>, and curly brackets are placed |
| 43 | around required arguments, <option>{-f | -g}</option>. Plain |
| 44 | arguments are required, but are not decorated with brackets. |
| 45 | </para></listitem> |
| 46 | <listitem><para> |
| 47 | Repeatable arguments are followed by an ellipsis. |
| 48 | </para></listitem> |
| 49 | </itemizedlist> |
| 50 | </refsect2> |
| 51 | |
| 52 | <refsect2 role='fu' revision="4.0"><title>&FutureChanges;</title> |
| 53 | <para> |
| 54 | <indexterm><primary>DocBook DTD</primary><secondary>Changes for <acronym>V4.0</acronym></secondary> |
| 55 | </indexterm> |
| 56 | The <literal>OptMult</literal> and <literal>ReqMult</literal> values for the |
| 57 | <sgmltag class='attribute'>Choice</sgmltag> attribute will be removed in |
| 58 | DocBook <acronym>V4.0</acronym>. Use the <sgmltag class='attribute'>Rep</sgmltag> attribute |
| 59 | instead to indicate that the choice is repeatable. |
| 60 | </para> |
| 61 | </refsect2> |
| 62 | |
| 63 | |
| 64 | |
| 65 | &group.parents.gen; |
| 66 | &group.children.gen; |
| 67 | </refsect1> |
| 68 | <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title> |
| 69 | <variablelist> |
| 70 | <varlistentry><term>choice</term> |
| 71 | <listitem> |
| 72 | <para> |
| 73 | <sgmltag class="attribute">Choice</sgmltag> indicates whether the <sgmltag>Arg</sgmltag> |
| 74 | is required (<literal>Req</literal> or <literal>Plain</literal>) or |
| 75 | optional (<literal>Opt</literal>). Arguments identified as <literal>Plain</literal> |
| 76 | are required, but are shown without additional decoration. The |
| 77 | <literal>OptMult</literal> and <literal>ReqMult</literal> choices will |
| 78 | be removed in DocBook V4.0; use the <sgmltag class="attribute">Rep</sgmltag> |
| 79 | attribute instead. |
| 80 | </para> |
| 81 | </listitem> |
| 82 | </varlistentry> |
| 83 | <varlistentry><term>rep</term> |
| 84 | <listitem> |
| 85 | <para> |
| 86 | A <sgmltag class="attribute">Rep</sgmltag> value of <literal>Repeat</literal> indicates that |
| 87 | the <sgmltag>Group</sgmltag> is reapeatable. This is frequently rendered with an |
| 88 | ellipsis. |
| 89 | </para> |
| 90 | </listitem> |
| 91 | </varlistentry> |
| 92 | </variablelist> |
| 93 | </refsect1> |
| 94 | <refsect1 condition='ref.elem.seealso'><title>See Also</title> |
| 95 | &group.seealso.gen; |
| 96 | </refsect1> |
| 97 | <refsect1><title>Examples</title> |
| 98 | |
| 99 | &group.example.seealso.gen; |
| 100 | </refsect1> |
| 101 | </refentry> |
| 102 |