Debian Codegraph @

ru/refpages/elements/example/refentry.xml

raw symbols SCIP
1 <refentry id="example.element">
2 <?dbhtml filename="example.html"?>
3 <refentryinfo>
4 <pubdate>$Date$</pubdate>
5 <releaseinfo>$Revision$</releaseinfo>
6 </refentryinfo>
7
8 <refmeta>
9 <indexterm><primary>elements</primary>
10 <secondary>example</secondary></indexterm>
11 <refentrytitle>example</refentrytitle>
12 <refmiscinfo>Element</refmiscinfo>
13 </refmeta>
14 <refnamediv>
15 <refname>example</refname>
16 <refpurpose>&example.purpose;</refpurpose>
17 </refnamediv>
18
19 &example.synopsis.gen;
20 <refsect1 condition='ref.description'><title>Description</title>
21
22 <para>
23 <sgmltag>Example</sgmltag> is a formal example with a title. Examples often
24 contain <sgmltag>ProgramListing</sgmltag>s or other large, block elements.
25 Frequently they are given <acronym>ID</acronym>s and referenced from the text with
26 <sgmltag>XRef</sgmltag> or <sgmltag>Link</sgmltag>.
27 </para>
28
29 <refsect2><title>Processing expectations</title>
30 <para>
31 &format.block; DocBook does not
32 specify the location of the example within the final displayed
33 flow of text; it may float or remain where it is located.
34 </para>
35 <para>
36 A list of examples may be generated at the beginning of a
37 document.
38 </para>
39 </refsect2>
40
41
42 &example.parents.gen;
43 &example.children.gen;
44 </refsect1>
45 <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title>
46 <variablelist>
47 <varlistentry><term>label</term>
48 <listitem>
49 <para>
50 <sgmltag class='attribute'>Label</sgmltag> specifies an identifying string for presentation purposes.
51 </para>
52 <para>
53 Generally, an explicit <sgmltag class='attribute'>Label</sgmltag> attribute is
54 used only if the processing system is incapable of generating the label
55 automatically. If present, the <sgmltag class='attribute'>Label</sgmltag>
56 is normative; it will used even
57 if the processing system is capable of automatic labelling.
58 </para>
59 </listitem>
60 </varlistentry>
61 <varlistentry><term>width</term>
62 <listitem>
63 <para>
64 <sgmltag class="attribute">Width</sgmltag> specifies the width (in characters)
65 of the longest line in this <sgmltag>Example</sgmltag> (formatters may use
66 this value to determine scaling or rotation).
67 </para>
68 </listitem>
69 </varlistentry>
70 </variablelist>
71 </refsect1>
72 <refsect1 condition='ref.elem.seealso'><title>See Also</title>
73 &example.seealso.gen;
74 </refsect1>
75 <refsect1><title>Examples</title>
76
77 <informalexample role="example-source">
78 <programlisting>&example.example.1.txt;</programlisting>
79 </informalexample>
80
81 <anchor id="ex.os.example.1" role="HACK-ex.out.start"/>
82 &example.example.1.gen;
83 <anchor id="ex.oe.example.1" role="HACK-ex.out.end"/>
84
85 &example.example.seealso.gen;
86 </refsect1>
87 </refentry>
88