<fragment>

The <fragment> element contains a labeled subpart of the syntax within a <syntaxdiagram>. The <fragment> element allows breaking out logical chunks of a large syntax diagram into named fragments. 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/figgroup pr-d/fragment

Example

This section is non-normative.

<syntaxdiagram frame="none">
 <title>CopyFile</title>
 <groupseq><kwd>COPYF</kwd></groupseq>
 <groupcomp><var>input-filename</var><kwd>*INFILE</kwd></groupcomp>
 <groupseq><var>output-filename</var><kwd>*OUTFILE</kwd></groupseq>
 <groupchoice><var>input-filename</var><kwd>*INFILE</kwd></groupchoice>
 <groupchoice><var>output-filename</var><kwd>*OUTFILE</kwd></groupchoice>
 <fragment>
  <groupchoice><kwd>*OVERLAP</kwd><kwd>*Prompt</kwd></groupchoice>
 </fragment>
</syntaxdiagram>

Content model

<title>?, (<fragref> | <groupchoice> | <groupcomp> | <groupseq> | <synnote> | <synnoteref>)*

Contained by

<synblk>, <syntaxdiagram>

In order
  1. Optional <title>
  2. Zero or more of the following
    • <fragref>
    • <groupchoice>
    • <groupcomp>
    • <groupseq>
    • <synnote>
    • <synnoteref>

Contained by

  • <synblk>
  • <syntaxdiagram>

Inheritance

+ topic/figgroup pr-d/fragment

The <fragment> element is specialized from <figgroup>. It is defined in the pr-domain module.

Attributes

The following attributes are available on this element: Universal attribute group and outputclass.