~jbailey/docbookshow/trunk

« back to all changes in this revision

Viewing changes to docs/tests/calloutlist.003.xml

  • Committer: jbailey at ubuntu
  • Date: 2007-02-26 00:11:20 UTC
  • Revision ID: jbailey@ubuntu.com-20070226001120-wj83qpumpwyf3cj4
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
 
3
          "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
 
4
<article>
 
5
  <articleinfo>
 
6
    <title>Unit Test: calloutlist.003</title>
 
7
    <releaseinfo role="CVS">$Id: calloutlist.003.xml 5258 2005-10-12 14:35:03Z xmldoc $</releaseinfo>
 
8
    <author><firstname>Benoit</firstname><surname>Guillon</surname>
 
9
    </author>
 
10
  </articleinfo>
 
11
 
 
12
<section><title>Callouts</title>
 
13
 
 
14
<section><title>Embedded <sgmltag>Co</sgmltag>s</title>
 
15
 
 
16
<programlisting>
 
17
  &lt;refentry>
 
18
    &lt;info>
 
19
      &lt;date>2003-10-20&lt;/date> <co id="V1690_date-co" linkends="V1690_date"/>
 
20
    &lt;/info>
 
21
    &lt;refmeta>
 
22
      &lt;refentrytitle>gtk-options&lt;/refentrytitle> <co id="V1690_title-co" linkends="V1690_title"/>
 
23
      &lt;manvolnum>7&lt;/manvolnum> <co id="V1690_manvolnum-co" linkends="V1690_manvolnum"/>
 
24
      &lt;refmiscinfo class="source-name">GTK+&lt;/refmiscinfo> <co id="V1690_source-name-co" linkends="V1690_source-name"/>
 
25
      &lt;refmiscinfo class="version">1.2&lt;/refmiscinfo> <co id="V1690_version-co" linkends="V1690_version"/>
 
26
      &lt;refmiscinfo class="manual">GTK+ User's Manual&lt;/refmiscinfo> <co id="V1690_manual-co" linkends="V1690_manual"/>
 
27
    &lt;/refmeta>
 
28
    &lt;refnamediv>
 
29
      &lt;refname>gtk-options&lt;/refname>
 
30
      &lt;refpurpose>Standard Command Line Options for GTK+ Programs&lt;/refpurpose>
 
31
    &lt;/refnamediv>
 
32
    &lt;refsect1>
 
33
      &lt;title>Description&lt;/title>
 
34
      &lt;para>This manual page describes the command line options, which
 
35
      are common to all GTK+ based applications.&lt;/para>
 
36
    &lt;/refsect1>
 
37
  &lt;/refentry>
 
38
</programlisting>
 
39
 
 
40
<calloutlist>
 
41
  <callout arearefs="V1690_date-co" id="V1690_date">
 
42
    <para>Sets the <quote>date</quote> part of the header/footer.</para>
 
43
  </callout>
 
44
  <callout arearefs="V1690_title-co" id="V1690_title">
 
45
    <para>Sets the <quote>title</quote> part.</para>
 
46
  </callout>
 
47
  <callout arearefs="V1690_manvolnum-co" id="V1690_manvolnum">
 
48
    <para>Sets the <quote>section</quote> part.</para>
 
49
  </callout>
 
50
  <callout arearefs="V1690_source-name-co" id="V1690_source-name">
 
51
    <para>Sets the <quote>source name</quote> part.</para>
 
52
  </callout>
 
53
  <callout arearefs="V1690_version-co" id="V1690_version">
 
54
    <para>Sets the <quote>version</quote> part.</para>
 
55
  </callout>
 
56
  <callout arearefs="V1690_manual-co" id="V1690_manual">
 
57
    <para>Sets the <quote>manual</quote> part.</para>
 
58
  </callout>
 
59
</calloutlist>
 
60
 
 
61
<para>
 
62
Another <sgmltag>screen</sgmltag> including <sgmltag>coref</sgmltag> too. The
 
63
first <sgmltag>coref</sgmltag> is not valid, the second one is valid. It checks
 
64
also that several items in co/@linkends are correctly handled.
 
65
</para>
 
66
 
 
67
<screen> Volume in drive C is SYSTEM         Serial number is 2350:717C
 
68
 Directory of  C:\
 
69
 
 
70
10/17/97   9:04         &lt;DIR>    bin
 
71
10/16/97  14:11         &lt;DIR>    DOS <co id="dos" linkends=" firstco lastco  "/>
 
72
10/16/97  14:40         &lt;DIR>    Program Files
 
73
10/16/97  14:46         &lt;DIR>    TEMP <coref linkend="unknown"/>
 
74
10/17/97   9:04         &lt;DIR>    tmp <coref linkend="dos"/>
 
75
10/16/97  14:37         &lt;DIR>    WINNT
 
76
10/16/97  14:25             119  AUTOEXEC.BAT <co linkends="startup" id="autoexec.bat"/>
 
77
 2/13/94   6:21          54,619  COMMAND.COM <co linkends="startup" id="command.com"/>
 
78
10/16/97  14:25             115  CONFIG.SYS <co id="config.sys"/>
 
79
11/16/97  17:17      61,865,984  pagefile.sys
 
80
 2/13/94   6:21           9,349  WINA20.386 <co id="wina20.386"/></screen>
 
81
 
 
82
<calloutlist>
 
83
<callout arearefs="dos" id="firstco">
 
84
  <para>
 
85
  This directory holds <trademark>MS-DOS</trademark>, the
 
86
  operating system that was installed before <trademark>Windows
 
87
  NT</trademark>.
 
88
  </para>
 
89
</callout>
 
90
<callout id="startup" arearefs="  autoexec.bat command.com config.sys ">
 
91
  <para>
 
92
  System startup code for DOS.
 
93
  </para>
 
94
</callout>
 
95
<callout arearefs="wina20.386" id="lastco">
 
96
  <para>
 
97
  Some sort of <trademark>Windows 3.1</trademark> hack for some 386 processors,
 
98
  as I recall.
 
99
  </para>
 
100
</callout>
 
101
</calloutlist>
 
102
 
 
103
</section>
 
104
 
 
105
<section><title>Programlistingco</title>
 
106
 
 
107
<para>This case checks that spaces are added to reach the expected
 
108
column.</para>
 
109
 
 
110
<programlistingco>
 
111
<areaspec>
 
112
<area id="hermite1" coords="2 55"/>
 
113
<area id="hermite2" coords="4 55"/>
 
114
</areaspec>
 
115
<programlisting>
 
116
This is a line
 
117
This is another line
 
118
This is a third lien
 
119
 
 
120
 
 
121
...
 
122
</programlisting>
 
123
<calloutlist>
 
124
<callout arearefs="hermite1 hermite2">
 
125
<para>
 
126
here <function>HermiteNormalFormIntegerMat</function>
 
127
is used
 
128
</para>
 
129
</callout>
 
130
</calloutlist>
 
131
</programlistingco>
 
132
 
 
133
<para>This programlistingco checks that you can put several markups at different
 
134
column positions into the same line, and that several markups with no column
 
135
specification are both put at the end of the line. The special case of a markup at
 
136
the end of the last line is checked too.</para>
 
137
 
 
138
<programlistingco>
 
139
<areaspec>
 
140
<area id="pos10" coords="2 10"/>
 
141
<area id="pos12" coords="2 12"/>
 
142
<area id="posend1" coords="2"/>
 
143
<area id="posend2" coords="2"/>
 
144
<area id="poslast" coords="8"/>
 
145
</areaspec>
 
146
<programlisting>
 
147
This is a line
 
148
This is another line
 
149
This is a third lien
 
150
 
 
151
 
 
152
...
 
153
The very last line</programlisting>
 
154
<calloutlist>
 
155
<callout arearefs="pos10 pos12">
 
156
<para>
 
157
here <function>HermiteNormalFormIntegerMat</function>
 
158
is used
 
159
</para>
 
160
</callout>
 
161
</calloutlist>
 
162
</programlistingco>
 
163
 
 
164
</section>
 
165
</section>
 
166
</article>