<delim>

The <delim> element defines a character marking the beginning or end of a section within a syntax diagram. Typical delimiter characters are the parenthesis, comma, tab, vertical bar or other special characters. 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/delim

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>

Zero or more of the following
  • Text
  • <data>
  • <data-about>
  • <foreign>
  • <keyword>
  • <term>
  • <text>
  • <unknown>

Contained by

  • <groupchoice>
  • <groupcomp>
  • <groupseq>
  • <synph>

Inheritance

+ topic/ph pr-d/delim

The <delim> 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.