1 <?xml version="1.0" encoding="utf-8"?>
\r
2 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
\r
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
\r
6 <title>Unit Test: refentry.007</title>
\r
7 <releaseinfo role="CVS">$Id: refentry.007.xml 7282 2007-08-23 09:27:01Z xmldoc $</releaseinfo>
\r
8 <author><firstname>Norman</firstname><surname>Walsh</surname>
\r
9 <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
\r
13 <title>Reference</title>
\r
18 <firstname>Norman</firstname><surname>Walsh</surname>
\r
19 <email>ndw@nwalsh.com</email>
\r
21 <para>Wrote the original version of this document.</para>
\r
25 <contrib>Added a bunch of test cases.</contrib>
\r
26 <firstname>Michael(tm)</firstname><surname>Smith</surname>
\r
27 <email>smith@sideshowbarker.net</email>
\r
32 <holder>Norman Walsh</holder>
\r
36 <holder>Michael(tm) Smith</holder>
\r
39 <para>This file is a product of the DocBook Project.</para>
\r
42 <para>Share and share alike.</para>
\r
46 <refname>FirstName</refname>
\r
47 <refname>SecondName</refname>
\r
48 <refpurpose>Purpose for FirstName</refpurpose>
\r
52 <refname>ThirdName</refname>
\r
53 <refpurpose>Purpose for ThirdName</refpurpose>
\r
59 <!-- * Yes, friend, Funcsynopsis is a verbatim -->
\r
61 >#include <varargs.h>
\r
62 #include <mouteyh.h>
\r
63 #include <qlmppzj.h></funcsynopsisinfo>
\r
65 <funcdef><type>float</type> <function>rand</function></funcdef>
\r
70 <funcdef>int <function>max</function></funcdef>
\r
75 <funcdef>int <function>idiv</function></funcdef>
\r
76 <paramdef><type>int</type> <parameter>n</parameter></paramdef>
\r
77 <paramdef><type>int</type> <parameter>m</parameter></paramdef>
\r
81 <para>Another.</para>
\r
85 <funcdef>void <function>qsort</function></funcdef>
\r
86 <paramdef>void *<parameter>dataptr</parameter>[]</paramdef>
\r
87 <paramdef>int <parameter>left</parameter></paramdef>
\r
88 <paramdef>int <parameter>right</parameter></paramdef>
\r
89 <paramdef>int (*<parameter>comp</parameter>)
\r
90 <funcparams>void *, void *</funcparams></paramdef>
\r
96 <funcdef>int <function>foo_frob_something</function></funcdef>
\r
97 <paramdef>foo_sometype1 <parameter>foo_frob_parm1</parameter></paramdef>
\r
98 <paramdef>foo_sometype1 <parameter>foo_frob_parm2</parameter></paramdef>
\r
99 <paramdef>foo_sometype1 <parameter>foo_frob_parm3</parameter></paramdef>
\r
100 <paramdef><type>int</type> (* <parameter>parm4</parameter> )
\r
101 <funcparams>int a, int b, int c</funcparams>
\r
103 <paramdef>foo_sometype1 <parameter>foo_frob_parm5</parameter></paramdef>
\r
107 <funcdef>int <function>foo_frob_something</function></funcdef>
\r
108 <paramdef>foo_sometype1 <parameter>foo_frob_parm1</parameter></paramdef>
\r
109 <paramdef>foo_sometype1 <parameter>foo_frob_parm2</parameter></paramdef>
\r
110 <paramdef>foo_sometype1 <parameter>foo_frob_parm3</parameter></paramdef>
\r
111 <paramdef><type>int</type> (* <parameter>parm4</parameter> )
\r
112 <funcparams>int a, int b, int c</funcparams>
\r
114 <paramdef>foo_sometype1 <parameter>foo_frob_parm5</parameter></paramdef>
\r
120 <title>Description</title>
\r
121 <para>This is a minimal RefEntry.</para>
\r
123 <para>The following is a Variablelist with a title.
\r
125 <title>My variablelist</title>
\r
127 <term>varlistentry term 1</term>
\r
128 <listitem><para>some listitem text</para></listitem>
\r
131 <term>varlistentry term 2</term>
\r
132 <listitem><para>some more listitem text</para></listitem>
\r
137 <title>Subsection</title>
\r
138 <para>This is a minimal RefEntry.</para>
\r
140 <para>The following is a Variablelist with a title and a nested variablelist
\r
142 <title>My glosslist</title>
\r
144 <glossterm>glossentry term 1</glossterm>
\r
145 <glossdef><para>some glossdef text</para></glossdef>
\r
148 <glossterm>glossentry term 2</glossterm>
\r
152 <term>nested variablelist term 1</term>
\r
153 <listitem><para>some variablelist text</para></listitem>
\r
156 <term>nested variablelist term 2</term>
\r
157 <listitem><para>some more variablelist text</para></listitem>
\r
166 <title>Sub-subsection</title>
\r
167 <para>This is a minimal RefEntry.</para>
\r
173 <title>More Description</title>
\r
174 <para>This is a not-so minimal RefEntry.</para>
\r
176 This is a screen [break here]
\r
177 that starts with a line of space. [break here]
\r
178 And it ends with a line of space.
\r
181 <para>normal paragraph here</para>
\r
183 <screen>This is a screen [break here]
\r
184 that does not start with a line of space. [break here]
\r
185 And does not end with a line of space.</screen>
\r
187 <para>This is a normal paragraph that contains a screen.
\r
188 <screen>This is a screen within a normal paragraph [break here]
\r
189 that does not start with a line of space. [break here]
\r
190 And does not end with a line of space but is followed
\r
191 by a line of space.</screen>
\r
194 <para>This is another normal paragraph that contains a screen.
\r
195 <screen>This is a screen within a normal paragraph [break here]
\r
196 that does not start with a line of space. [break here]
\r
197 And does not end with a line of space and is not followed
\r
198 by a line of space.</screen></para>
\r
200 <para>This is another normal paragraph that contains a screen.
\r
202 This is a screen within a normal paragraph [break here]
\r
203 that starts with a line of space. [break here]
\r
204 And ends with a line of space but is not followed by a line of space.
\r
207 <para>This is another normal paragraph that contains a screen.
\r
209 This is a screen within a normal paragraph [break here]
\r
210 that starts with a line of space. [break here]
\r
211 And ends with a line of space and is followed by a line of space.
\r
215 <para>This is another normal paragraph that contains a screen.
\r
218 This is a screen within a normal paragraph [break here]
\r
219 that starts with a 2 lines of space. [break here]
\r
220 And ends with 3 lines of space and is followed by a line of space.
\r
226 <para>This paragraph contains an itemizedlist with a title. The title
\r
227 is “Mrignkwolmcng”.
\r
229 <title>Mrignkwolmcng</title>
\r
231 <para>itemizedlist listitem 1</para>
\r
234 <para>itemizedlist listitem 2</para>
\r
238 This is some useless text that follows the “Mrignkwolmcng” orderedlist
\r
239 in the same para.</para>
\r
241 <para>The following is a Variablelist with a title and with a nested itemizedlist.
\r
243 <title>My variablelist</title>
\r
245 <term>varlistentry term 1</term>
\r
248 <title>nested itemizedlist</title>
\r
250 <para>itemizedlist listitem 1</para>
\r
253 <para>itemizedlist listitem 2</para>
\r
259 <term>varlistentry term 2</term>
\r
260 <listitem><para>some more listitem text</para></listitem>
\r
265 <para>The following is a Variablelist with a title and with a
\r
266 nested Varlistentry that contains multiple Terms
\r
268 <title>My nested-multi-term-per-varlistentry variablelist</title>
\r
270 <term>Varlistentry term 1</term>
\r
274 <term> varlistentry term 1.1</term>
\r
275 <term>varlistentry term 1.2 </term>
\r
276 <term>varlistentry term 1.3</term>
\r
277 <listitem><para>All 'bout terms 1.1, 1.2, and 1.3</para>
\r
284 <term>varlistentry term 2</term>
\r
285 <listitem><para>some more listitem text</para></listitem>
\r
291 <title>Subsection</title>
\r
292 <para>This is a minimal RefEntry.</para>
\r
297 <title>Even More Description</title>
\r
298 <para>This is an even less minimal RefEntry.</para>
\r
300 <para>This is a paragraph. It contains the following segmentedlist,
\r
301 titled “Gibbererish”, with several segtitle elements.
\r
303 <title>Gibbererish</title>
\r
304 <segtitle>Floober</segtitle>
\r
305 <segtitle>Buugler</segtitle>
\r
306 <segtitle>Sstangooo</segtitle>
\r
307 <segtitle>Borobinda</segtitle>
\r
309 <seg>Bamalalaboonda Bamalalaboonda Bamalalaboonda Bamalalaboonda Bamalalaboonda Bamalalaboonda</seg>
\r
310 <seg>Mondorotoluafu</seg>
\r
311 <seg>Ganafutralinga</seg>
\r
312 <seg>Patagularamakundra</seg>
\r
315 <seg>Cadraracondar</seg>
\r
316 <seg>Hentirotomaambu</seg>
\r
317 <seg>BdomentriolaiaBdomentriolaiaBdomentriolaia</seg>
\r
318 <seg>Candamalaturuanio</seg>
\r
321 This is some text that follows the segementedlist within the same
\r
322 paragraph. The next part of this same paragraph is an
\r
323 <sgmltag>important</sgmltag> admonition.
\r
325 <para>It is very important that you read this. That’s why it stands
\r
326 out the way that it does.</para>
\r
330 <para>This is a para with a footnote
\r
332 ><para>Stuff here <programlisting>This is a program listing
\r
333 that's two lines long.</programlisting></para>
\r
334 and stuff after the
\r
335 footnote</footnote></para>
\r