DocBook: The Definitive GuideBy Norman Walsh & Leonard Muellner1st Edition October 1999 1-56592-580-7, Order Number: 5807 652 pages, $36.95 , Includes CD-ROM |
Group
Synopsis
Content Model
Group ::= ((Arg|Group|Option|SynopFragmentRef|Replaceable|SBR)+)Attributes
Name
Type
Default
Rep Enumeration:
Norepeat
Repeat"Norepeat" Choice Enumeration:
Opt
Optmult
Plain
Req
Reqmult"Opt" Tag Minimization
Both the start- and end-tags are required for this element.
Description
A Group surrounds several related items. Usually, they are grouped because they are mutually exclusive. The user is expected to select one of the items.
Processing expectations
Formatted inline. The additional processing expectations of a Group are significant. For a complete discussion, see CmdSynopsis.
Multiple arguments within a group are considered exclusive and are separated by vertical bars.
Brackets are used to distinguish between optional, required, or plain arguments. Usually square brackets are placed around optional arguments, [-f | -g], and curly brackets are placed around required arguments, {-f | -g}. Plain arguments are required, but are not decorated with brackets.
Repeatable arguments are followed by an ellipsis.
Future Changes
The OptMult and ReqMult values for the Choice attribute will be removed in DocBook V4.0. Use the Rep attribute instead to indicate that the choice is repeatable.
Children
The following elements occur in Group: Arg, Group, Option, Replaceable, SBR, SynopFragmentRef.
In some contexts, the following elements are allowed anywhere: BeginPage, IndexTerm.
Attributes
- Choice
Choice indicates whether the Arg is required (Req or Plain) or optional (Opt). Arguments identified as Plain are required, but are shown without additional decoration. The OptMult and ReqMult choices will be removed in DocBook V4.0; use the Rep attribute instead.
- Rep
A Rep value of Repeat indicates that the Group is reapeatable. This is frequently rendered with an ellipsis.
Back to: DocBook: The Definitive Guide
© 2001, O'Reilly & Associates, Inc.