<repsep>
The <repsep> element provides a repeat separator character within
a syntax diagram to indicate that a group of syntax elements can (or should) be repeated. If the
<repsep> element contains a separator character such as a plus (+), this
indicates that the character must be used between repetitions of the syntax elements. This element
is part of the DITA programming domain, a special set of DITA elements
designed to document programming tasks, concepts, and reference information.
Content models
See appendix for information about this element in OASIS document type shells.
Inheritance
+ topic/ph pr-d/repsep
Example
This section is non-normative.
In this example, the group can be repeated. When repeated, a comma should be used between selections.
<groupchoice>
<repsep>,</repsep>
<kwd>This</kwd>
<kwd>That</kwd>
<kwd>The other</kwd>
</groupchoice>
Content model
(Text | <data> | <data-about> | <foreign> | <unknown> | <keyword> | <term> | <text>)*
Contained by
<groupchoice>, <groupcomp>, <groupseq>
- Text
<data><data-about><foreign><keyword><term><text><unknown>
Contained by
<groupchoice><groupcomp><groupseq>
Inheritance
+ topic/ph pr-d/repsep
The <repsep> element is specialized from <ph>. It is defined in the pr-domain module.
Attributes
The following attributes are available on this element: Universal attribute group (with a narrowed definition of
@importance, given below) and outputclass.
@importance- The attribute indicates whether this item in a
syntax diagram is optional or
required. Output processors might indicate this
designation in a generated diagram. Allowable
values are:
- optional
- This section of the syntax is optional.
- required
- This section of the syntax is required.
- -dita-use-conref-target
- See Using the -dita-use-conref-target value for more information.
@importance- The attribute indicates whether this item in a
syntax diagram is optional or
required. Output processors might indicate this
designation in a generated diagram. Allowable
values are:
- optional
- This section of the syntax is optional.
- required
- This section of the syntax is required.
- -dita-use-conref-target
- See Using the -dita-use-conref-target value for more information.