<oper>
The <oper> element defines an operator within a syntax definition.
Typical operators are equals (=), plus (+) or multiply (*). 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/oper
Example
This section is non-normative.
<syntaxdiagram>
<title>Adding</title>
<groupseq><kwd>1</kwd><oper>+</oper><var>two</var>
<delim>=</delim><kwd>something</kwd>
</groupseq>
</syntaxdiagram>Content model
(Text | <data> | <data-about> | <foreign> | <unknown> | <keyword> | <term> | <text>)*
Contained by
<groupchoice>, <groupcomp>, <groupseq>, <synph>
- Text
<data><data-about><foreign><keyword><term><text><unknown>
Contained by
<groupchoice><groupcomp><groupseq><synph>
Inheritance
+ topic/ph pr-d/oper
The <oper> 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,
required, or
default. Output processors can 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.
- default
- This section of the syntax is used by default or has this default value.
- -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,
required, or
default. Output processors can 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.
- default
- This section of the syntax is used by default or has this default value.
- -dita-use-conref-target
- See Using the -dita-use-conref-target value for more information.