The fragment reference (<fragref>) element provides a logical reference to a syntax definition fragment so that you can reference a syntax fragment multiple times. This element is part of the DITA programming domain, a special set of DITA elements designed to document programming tasks, concepts and reference information.


( text data or ph or codeph or synph or filepath or msgph or userinput or systemoutput or b or u or i or tt or sup or sub or uicontrol or menucascade or term or q or boolean or state or keyword or option or parmname or apiname or cmdname or msgnum or varname or wintitle or tm) (any number)

Contained by

syntaxdiagram, synblk, groupseq, groupchoice, groupcomp, fragment


topic/xref, pr-d/fragref


Name Description Data Type Default Value Required?
href A reference to a syntax diagram fragment element. The href attribute uses conventional URL syntax to point to the ID of the matching syntax diagram fragment:
importance The attribute indicates whether the element it modifies is optional or required. optional | required #IMPLIED No
%univ-atts-no-importance A set of related attributes, described at %univ-atts;, but without the importance attribute 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


This markup example:
<syntaxdiagram frame="none">
 <fragref href="#syntax/overlay"></fragref>
 <fragment id="overlay">
produces the following output:


>--| Overlay |--+-input-filename-+--+-output-filename-+--------><
                '-*INFILE--------'  '-*OUTFILE--------'



OASIS DITA Language Specification v1.0 -- 09 May 2005
Copyright (c) OASIS Open 2005. All Rights Reserved.