synopfragment

synopfragment — A portion of a cmdsynopsis broken out from the main body of the synopsis.

Synopsis

synopfragment ::=

Attributes

Common attributes and common linking attributes.

No additional attributes.

Description

A complex cmdsynopsis can be made more manageable with synopfragments. Rather than attempting to present the entire synopsis in one large piece, parts of the synopsis can be extracted and presented elsewhere. These extracted pieces are placed in synopfragments at the end of the cmdsynopsis.

At the point in which each piece was extracted, insert a synopfragmentref that points to the fragment. The content of the reference element will be presented inline.

Processing expectations

Formatted as a displayed block.

The presentation system is responsible for generating text that makes the reader aware of the link. This can be done with numbered bullets, or any other appropriate mechanism. Whatever mark is generated for the reference must also be generated for the fragment.

Online systems have additional flexibility. They may generate hot links between the references and the fragments, for example, or place the fragments in pop-up windows.

Attributes

Common attributes and common linking attributes.

any attribute

Any attribute in any other explicit namespace

Parents

These elements contain synopfragment: cmdsynopsis.

Children

The following elements occur in synopfragment: arg, group (db.group).

See Also

Related elements: arg, cmdsynopsis, group, refsynopsisdiv, sbr, synopfragmentref.

Examples

 1 |<article xmlns='http://docbook.org/ns/docbook'>
   |<title>Example synopfragment</title>
   | 
   |<cmdsynopsis>
 5 |  <command>cccp</command>
   |  <arg>-$</arg>
   |  <arg>-C</arg>
   |  <arg rep='repeat'>-D<replaceable>name</replaceable>
   |  <arg>=<replaceable>definition</replaceable></arg></arg>
10 |  <arg>-dD</arg>
   |  <arg>-dM</arg>
   |  <sbr/>
   |  <arg rep='repeat'>-I <replaceable>directory</replaceable></arg>
   |  <arg>-H</arg>
15 |  <arg>-I-</arg>
   |  <arg rep='repeat'>-imacros <replaceable>file</replaceable></arg>
   |  <sbr/>
   |  <arg rep='repeat'>-include <replaceable>file</replaceable></arg>
   |  <group>
20 |    <synopfragmentref linkend="langs">languages</synopfragmentref>
   |  </group>
   |  <arg>-lint</arg>
   |  <sbr/>
   |  <group>
25 |    <arg>-M</arg>
   |    <arg>-MD</arg>
   |    <arg>-MM</arg>
   |    <arg>-MMD</arg>
   |  </group>
30 |  <arg>-nostdinc</arg>
   |  <arg>-P</arg>
   |  <arg>-pedantic</arg>
   |  <sbr/>
   |  <arg>-pedantic-errors</arg>
35 |  <arg>-trigraphs</arg>
   |  <arg>-U<replaceable>name</replaceable></arg>
   |  <sbr/>
   |  <arg>-undef</arg>
   |  <arg choice="plain"><synopfragmentref linkend="warn">warnings
40 |  </synopfragmentref></arg>
   |  <group choice='req'>
   |    <arg><replaceable>infile</replaceable></arg>
   |    <arg>-</arg>
   |  </group>
45 |  <group choice='req'>
   |    <arg><replaceable>outfile</replaceable></arg>
   |    <arg>-</arg>
   |  </group>
   | 
50 |  <synopfragment xml:id="langs">
   |    <group choice="plain">
   |      <arg>-lang-c</arg>
   |      <arg>-lang-c++</arg>
   |      <arg>-lang-objc</arg>
55 |    </group>
   |  </synopfragment>
   | 
   |  <synopfragment xml:id="warn">
   |    <arg>-Wtrigraphs</arg>
60 |    <arg>-Wcomment</arg>
   |    <arg>-Wall</arg>
   |    <arg>-Wtraditional</arg>
   |  </synopfragment>
   | 
65 |</cmdsynopsis>
   | 
   |</article>
cccp [-$] [-C] [-Dname [=definition]] [-dD] [-dM]
[-I directory] [-H] [-I-] [-imacros file]
[-include file] [ languages] [-lint]
[[-M] | [-MD] | [-MM] | [-MMD]] [-nostdinc] [-P] [-pedantic]
[-pedantic-errors] [-trigraphs] [-Uname]
[-undef] warnings {[infile] | [-]} {[outfile] | [-]}
[-lang-c] | [-lang-c++] | [-lang-objc]
[-Wtrigraphs] [-Wcomment] [-Wall] [-Wtraditional]