FragrefThe fragment reference (<fragref>) element
provides a logical reference to a syntax definition fragment so that you can
reference a syntax fragment multiple times, or pull a large section of syntax
out of line for easier reading. This element is part of the DITA programming
domain, a special set of DITA elements designed to document programming tasks,
concepts and reference information.
[edit] Example
This markup 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>
'''<fragref href="#syntax/overlay"></fragref>'''
<groupchoice><var>input-filename</var><kwd>*INFILE</kwd></groupchoice>
<groupchoice><var>output-filename</var><kwd>*OUTFILE</kwd></groupchoice>
<fragment id="overlay">
<title>Overlay</title>
<groupchoice><kwd>*OVERLAP</kwd><kwd>*Prompt</kwd></groupchoice>
</fragment>
</syntaxdiagram>
produces the following output:
CopyFile
>>-COPYF--input-filename*INFILE--output-filename--*OUTFILE------>
>--| Overlay |--+-input-filename-+--+-output-filename-+--------><
'-*INFILE--------' '-*OUTFILE--------'
Overlay
|--+-*OVERLAP-+-------------------------------------------------|
'-*Prompt--'
[edit] Contains
[edit] Contained by
| Doctype
| Parents
|
| ditabase, topic, task, concept, reference, glossary
| syntaxdiagram, synblk, groupseq, groupchoice, groupcomp, fragment
|
[edit] Inheritance:
+ topic/xref pr-d/fragref
[edit] Attributes
| Name
| Description
| Data Type
| Default Value
| Required?
|
| href
| A reference to a syntax diagram fragment element. The referenced fragment
should be in the same diagram as the fragref element. The href attribute
uses conventional URL syntax to point to the ID of the matching syntax diagram
fragment:
href="#topicid/fragmentid"
| CDATA
| #IMPLIED
| No
|
| importance
| The attribute indicates whether this item in a syntax diagram is optional or required.
Output processors may indicate this designation in a generated diagram. See this topic for more information on
the conref value.
| required | -dita-use-conref-target
| #IMPLIED
| No
|
| props
| Root attribute from which new metadata attributes can be specialized.
This is a property attribute
which supports conditional processing for filtering or flagging. If no value is
specified, but the attribute is specified on an ancestor within a map or within
the related-links section, the value will inherit from the closest ancestor. The attribute takes a space delimited set of
values. However, when acting as a container for generalized attributes, the
content model will be more complex; that model is documented in the "attribute
generalization" section of the DITA architectural specification.
| CDATA
| #IMPLIED
| No
|
| base
| A generic attribute that has no specific purpose, but is intended
to act as a base for specialized attributes that have a simple value syntax
like the conditional processing attributes (one or more alphanumeric values
separated by whitespace). The attribute takes a space delimited set of
values. However, when acting as a container for generalized attributes, the
content model will be more complex; that model is documented in the "attribute
generalization" section of the DITA architectural specification.
| CDATA
| #IMPLIED
| No
|
| platform
| Indicates operating system and hardware. This is a property attribute
which supports conditional processing for filtering or flagging. If no value is
specified, but the attribute is specified on an ancestor within a map or within
the related-links section, the value will inherit from the closest ancestor. The attribute takes a space delimited set
of values.
| CDATA
| #IMPLIED
| No
|
| product
| Contains the name of the product to which the topic applies. This is a property attribute
which supports conditional processing for filtering or flagging. If no value is
specified, but the attribute is specified on an ancestor within a map or within
the related-links section, the value will inherit from the closest ancestor. The attribute takes a space delimited set
of values.
| CDATA
| #IMPLIED
| No
|
| audience
| Indicates the intended audience for the element.
This is a property attribute
which supports conditional processing for filtering or flagging. If no value is
specified, but the attribute is specified on an ancestor within a map or within
the related-links section, the value will inherit from the closest ancestor. The attribute takes a space delimited set
of values.
| CDATA
| #IMPLIED
| No
|
| otherprops
| This attribute can be used for any other properties that might be
needed to describe an audience, or to provide selection criteria for the
element. This is a property attribute
which supports conditional processing for filtering or flagging. If no value is
specified, but the attribute is specified on an ancestor within a map or within
the related-links section, the value will inherit from the closest ancestor. The attribute takes a space delimited set
of values.
| CDATA
| #IMPLIED
| No
|
| rev
| Indicates revision level of an element. It is useful for flagging
outputs based on revision. If no value is
specified, but the attribute is specified on an ancestor within a map or within
the related-links section, the value will inherit from the closest ancestor.
| CDATA
| #IMPLIED
| No
|
| status
| The status of the current element.
| changed | deleted | unchanged | -dita-use-conref-target
| #IMPLIED
| No
|
| %id-atts; (id, conref)
| A set of related attributes, described at %id-atts;
| parameter entity
| PE not
applicable
| Not applicable
|
| %localization-atts; (translate, xml:lang, dir)
| A set of related attributes, described at %localization-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: fragment
Next topic: synblk
|
|