Fragment

Within a syntax definition, a <fragment>

is a labeled subpart of the syntax. 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.


Contents

[edit] Example

<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>

[edit] Contains

Doctype Content model
ditabase, topic, task, reference, concept, glossary ( (

title) (optional) then (

groupseq or groupchoice or groupcomp or fragref or synnote or synnoteref) (any number) )

[edit] Contained by

Doctype Parents
ditabase, topic, task, concept, reference, glossary syntaxdiagram, synblk

[edit] Inheritance:

+ topic/figgroup pr-d/fragment


[edit] Attributes

Name Description Data Type Default Value Required?
%univ-atts; (%select-atts;, %id-atts;, %localization-atts;) A set of related attributes, described at %univ-atts; parameter entity PE not

applicable

Not applicable
%global-atts; (xtrf, xtrc) A set of related attributes, described at %global-atts; parameter entity PE not

applicable

Not applicable
class, outputclass Common attributes described in Other common DITA attributes      

TOC: Language Specification 1.1
Parent topic: Programming elements
Previous topic: groupcomp
Next topic: fragref

Retrieved from "http://www.ditawiki.org/index.php/Fragment"

This page has been accessed 1,016 times. This page was last modified 12:00, 13 July 2007.





This page
Discuss this page
Post a comment
Printable version
My pages
Log in / create account