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