refentry.007.ns.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. <book xmlns="http://docbook.org/ns/docbook" version="5.0">
  2. <info><title>Unit Test: refentry.007</title>
  3. <releaseinfo role="CVS">$Id: refentry.007.xml 7282 2007-08-23 09:27:01Z xmldoc $</releaseinfo>
  4. <author><personname><firstname>Norman</firstname><surname>Walsh</surname></personname><affiliation><address><email>ndw@nwalsh.com</email></address></affiliation></author>
  5. </info>
  6. <reference><info><title>Reference</title></info>
  7. <refentry>
  8. <info>
  9. <authorgroup>
  10. <author><personname><firstname>Norman</firstname><surname>Walsh</surname></personname><email>ndw@nwalsh.com</email><personblurb>
  11. <para>Wrote the original version of this document.</para>
  12. </personblurb></author>
  13. <editor><personname><firstname>Michael(tm)</firstname><surname>Smith</surname></personname><contrib>Added a bunch of test cases.</contrib><email>smith@sideshowbarker.net</email></editor>
  14. </authorgroup>
  15. <copyright>
  16. <year>2003</year>
  17. <holder>Norman Walsh</holder>
  18. </copyright>
  19. <copyright>
  20. <year>2006</year>
  21. <holder>Michael(tm) Smith</holder>
  22. </copyright>
  23. <legalnotice>
  24. <para>This file is a product of the DocBook Project.</para>
  25. </legalnotice>
  26. <legalnotice>
  27. <para>Share and share alike.</para>
  28. </legalnotice>
  29. </info>
  30. <refnamediv>
  31. <refname>FirstName</refname>
  32. <refname>SecondName</refname>
  33. <refpurpose>Purpose for FirstName</refpurpose>
  34. </refnamediv>
  35. <refnamediv>
  36. <refname>ThirdName</refname>
  37. <refpurpose>Purpose for ThirdName</refpurpose>
  38. </refnamediv>
  39. <refsynopsisdiv>
  40. <?dbfunclist ?>
  41. <funcsynopsis>
  42. <!-- * Yes, friend, Funcsynopsis is a verbatim -->
  43. <funcsynopsisinfo>#include &lt;varargs.h&gt;
  44. #include &lt;mouteyh.h&gt;
  45. #include &lt;qlmppzj.h&gt;</funcsynopsisinfo>
  46. <funcprototype>
  47. <funcdef><type>float</type> <function>rand</function></funcdef>
  48. <void/>
  49. </funcprototype>
  50. <funcprototype>
  51. <funcdef>int <function>max</function></funcdef>
  52. <varargs/>
  53. </funcprototype>
  54. <funcprototype>
  55. <funcdef>int <function>idiv</function></funcdef>
  56. <paramdef><type>int</type> <parameter>n</parameter></paramdef>
  57. <paramdef><type>int</type> <parameter>m</parameter></paramdef>
  58. </funcprototype>
  59. </funcsynopsis>
  60. <para>Another.</para>
  61. <funcsynopsis>
  62. <funcprototype>
  63. <funcdef>void <function>qsort</function></funcdef>
  64. <paramdef>void *<parameter>dataptr</parameter>[]</paramdef>
  65. <paramdef>int <parameter>left</parameter></paramdef>
  66. <paramdef>int <parameter>right</parameter></paramdef>
  67. <paramdef>int (*<parameter>comp</parameter>)
  68. <funcparams>void *, void *</funcparams></paramdef>
  69. </funcprototype>
  70. </funcsynopsis>
  71. <funcsynopsis>
  72. <funcprototype>
  73. <funcdef>int <function>foo_frob_something</function></funcdef>
  74. <paramdef>foo_sometype1 <parameter>foo_frob_parm1</parameter></paramdef>
  75. <paramdef>foo_sometype1 <parameter>foo_frob_parm2</parameter></paramdef>
  76. <paramdef>foo_sometype1 <parameter>foo_frob_parm3</parameter></paramdef>
  77. <paramdef><type>int</type> (* <parameter>parm4</parameter> )
  78. <funcparams>int a, int b, int c</funcparams>
  79. </paramdef>
  80. <paramdef>foo_sometype1 <parameter>foo_frob_parm5</parameter></paramdef>
  81. </funcprototype>
  82. <funcprototype>
  83. <funcdef>int <function>foo_frob_something</function></funcdef>
  84. <paramdef>foo_sometype1 <parameter>foo_frob_parm1</parameter></paramdef>
  85. <paramdef>foo_sometype1 <parameter>foo_frob_parm2</parameter></paramdef>
  86. <paramdef>foo_sometype1 <parameter>foo_frob_parm3</parameter></paramdef>
  87. <paramdef><type>int</type> (* <parameter>parm4</parameter> )
  88. <funcparams>int a, int b, int c</funcparams>
  89. </paramdef>
  90. <paramdef>foo_sometype1 <parameter>foo_frob_parm5</parameter></paramdef>
  91. </funcprototype>
  92. </funcsynopsis>
  93. </refsynopsisdiv>
  94. <refsection><info><title>Description</title></info>
  95. <para>This is a minimal RefEntry.</para>
  96. <para>The following is a Variablelist with a title.
  97. <variablelist><info><title>My variablelist</title></info>
  98. <varlistentry>
  99. <term>varlistentry term 1</term>
  100. <listitem><para>some listitem text</para></listitem>
  101. </varlistentry>
  102. <varlistentry>
  103. <term>varlistentry term 2</term>
  104. <listitem><para>some more listitem text</para></listitem>
  105. </varlistentry>
  106. </variablelist>
  107. </para>
  108. <refsection><info><title>Subsection</title></info>
  109. <para>This is a minimal RefEntry.</para>
  110. <para>The following is a Variablelist with a title and a nested variablelist
  111. <glosslist>
  112. <glossentry>
  113. <glossterm>glossentry term 1</glossterm>
  114. <glossdef><para>some glossdef text</para></glossdef>
  115. </glossentry>
  116. <glossentry>
  117. <glossterm>glossentry term 2</glossterm>
  118. <glossdef>
  119. <variablelist>
  120. <varlistentry>
  121. <term>nested variablelist term 1</term>
  122. <listitem><para>some variablelist text</para></listitem>
  123. </varlistentry>
  124. <varlistentry>
  125. <term>nested variablelist term 2</term>
  126. <listitem><para>some more variablelist text</para></listitem>
  127. </varlistentry>
  128. </variablelist>
  129. </glossdef>
  130. </glossentry>
  131. </glosslist>
  132. </para>
  133. <refsection><info><title>Sub-subsection</title></info>
  134. <para>This is a minimal RefEntry.</para>
  135. </refsection>
  136. </refsection>
  137. </refsection>
  138. <refsection><info><title>More Description</title></info>
  139. <para>This is a not-so minimal RefEntry.</para>
  140. <screen>
  141. This is a screen [break here]
  142. that starts with a line of space. [break here]
  143. And it ends with a line of space.
  144. </screen>
  145. <para>normal paragraph here</para>
  146. <screen>This is a screen [break here]
  147. that does not start with a line of space. [break here]
  148. And does not end with a line of space.</screen>
  149. <para>This is a normal paragraph that contains a screen.
  150. <screen>This is a screen within a normal paragraph [break here]
  151. that does not start with a line of space. [break here]
  152. And does not end with a line of space but is followed
  153. by a line of space.</screen>
  154. </para>
  155. <para>This is another normal paragraph that contains a screen.
  156. <screen>This is a screen within a normal paragraph [break here]
  157. that does not start with a line of space. [break here]
  158. And does not end with a line of space and is not followed
  159. by a line of space.</screen></para>
  160. <para>This is another normal paragraph that contains a screen.
  161. <screen>
  162. This is a screen within a normal paragraph [break here]
  163. that starts with a line of space. [break here]
  164. And ends with a line of space but is not followed by a line of space.
  165. </screen></para>
  166. <para>This is another normal paragraph that contains a screen.
  167. <screen>
  168. This is a screen within a normal paragraph [break here]
  169. that starts with a line of space. [break here]
  170. And ends with a line of space and is followed by a line of space.
  171. </screen>
  172. </para>
  173. <para>This is another normal paragraph that contains a screen.
  174. <screen>
  175. This is a screen within a normal paragraph [break here]
  176. that starts with a 2 lines of space. [break here]
  177. And ends with 3 lines of space and is followed by a line of space.
  178. </screen>
  179. </para>
  180. <para>This paragraph contains an itemizedlist with a title. The title
  181. is “Mrignkwolmcng”.
  182. <orderedlist inheritnum="ignore" continuation="restarts"><info><title>Mrignkwolmcng</title></info>
  183. <listitem>
  184. <para>itemizedlist listitem 1</para>
  185. </listitem>
  186. <listitem>
  187. <para>itemizedlist listitem 2</para>
  188. </listitem>
  189. </orderedlist>
  190. This is some useless text that follows the “Mrignkwolmcng” orderedlist
  191. in the same para.</para>
  192. <para>The following is a Variablelist with a title and with a nested itemizedlist.
  193. <variablelist><info><title>My variablelist</title></info>
  194. <varlistentry>
  195. <term>varlistentry term 1</term>
  196. <listitem>
  197. <itemizedlist><info><title>nested itemizedlist</title></info>
  198. <listitem>
  199. <para>itemizedlist listitem 1</para>
  200. </listitem>
  201. <listitem>
  202. <para>itemizedlist listitem 2</para>
  203. </listitem>
  204. </itemizedlist>
  205. </listitem>
  206. </varlistentry>
  207. <varlistentry>
  208. <term>varlistentry term 2</term>
  209. <listitem><para>some more listitem text</para></listitem>
  210. </varlistentry>
  211. </variablelist>
  212. </para>
  213. <para>The following is a Variablelist with a title and with a
  214. nested Varlistentry that contains multiple Terms
  215. <variablelist><info><title>My nested-multi-term-per-varlistentry variablelist</title></info>
  216. <varlistentry>
  217. <term>Varlistentry term 1</term>
  218. <listitem>
  219. <variablelist>
  220. <varlistentry>
  221. <term> varlistentry term 1.1</term>
  222. <term>varlistentry term 1.2 </term>
  223. <term>varlistentry term 1.3</term>
  224. <listitem><para>All 'bout terms 1.1, 1.2, and 1.3</para>
  225. </listitem>
  226. </varlistentry>
  227. </variablelist>
  228. </listitem>
  229. </varlistentry>
  230. <varlistentry>
  231. <term>varlistentry term 2</term>
  232. <listitem><para>some more listitem text</para></listitem>
  233. </varlistentry>
  234. </variablelist>
  235. </para>
  236. <refsection><info><title>Subsection</title></info>
  237. <para>This is a minimal RefEntry.</para>
  238. </refsection>
  239. </refsection>
  240. <refsection><info><title>Even More Description</title></info>
  241. <para>This is an even less minimal RefEntry.</para>
  242. <para>This is a paragraph. It contains the following segmentedlist,
  243. titled “Gibbererish”, with several segtitle elements.
  244. <segmentedlist>
  245. <segtitle>Floober</segtitle>
  246. <segtitle>Buugler</segtitle>
  247. <segtitle>Sstangooo</segtitle>
  248. <segtitle>Borobinda</segtitle>
  249. <seglistitem>
  250. <seg>Bamalalaboonda Bamalalaboonda Bamalalaboonda Bamalalaboonda Bamalalaboonda Bamalalaboonda</seg>
  251. <seg>Mondorotoluafu</seg>
  252. <seg>Ganafutralinga</seg>
  253. <seg>Patagularamakundra</seg>
  254. </seglistitem>
  255. <seglistitem>
  256. <seg>Cadraracondar</seg>
  257. <seg>Hentirotomaambu</seg>
  258. <seg>BdomentriolaiaBdomentriolaiaBdomentriolaia</seg>
  259. <seg>Candamalaturuanio</seg>
  260. </seglistitem>
  261. </segmentedlist>
  262. This is some text that follows the segementedlist within the same
  263. paragraph. The next part of this same paragraph is an
  264. <tag>important</tag> admonition.
  265. <important>
  266. <para>It is very important that you read this. That’s why it stands
  267. out the way that it does.</para>
  268. </important>
  269. </para>
  270. <para>This is a para with a footnote
  271. <footnote><para>Stuff here <programlisting>This is a program listing
  272. that's two lines long.</programlisting></para>
  273. and stuff after the
  274. footnote</footnote></para>
  275. </refsection>
  276. </refentry>
  277. </reference>
  278. </book>