]> granicus.if.org Git - docbook-dsssl/commitdiff
Test documents
authorNorman Walsh <ndw@nwalsh.com>
Fri, 18 Jan 2002 19:09:39 +0000 (19:09 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 18 Jan 2002 19:09:39 +0000 (19:09 +0000)
87 files changed:
testdocs/tests/admonitions.001.xml [new file with mode: 0644]
testdocs/tests/bibliography.001.xml [new file with mode: 0644]
testdocs/tests/bibliography.002.xml [new file with mode: 0644]
testdocs/tests/book.001.xml [new file with mode: 0644]
testdocs/tests/book.002.xml [new file with mode: 0644]
testdocs/tests/bookinfo.001.xml [new file with mode: 0644]
testdocs/tests/bridgehead.001.xml [new file with mode: 0644]
testdocs/tests/calloutlist.001.xml [new file with mode: 0644]
testdocs/tests/classsynopsis.001.xml [new file with mode: 0644]
testdocs/tests/equation.001.xml [new file with mode: 0644]
testdocs/tests/equation.002.xml [new file with mode: 0644]
testdocs/tests/equation.003.xml [new file with mode: 0644]
testdocs/tests/example.001.xml [new file with mode: 0644]
testdocs/tests/extensions.001.xml [new file with mode: 0644]
testdocs/tests/extensions.002.xml [new file with mode: 0644]
testdocs/tests/extensions.003.xml [new file with mode: 0644]
testdocs/tests/extensions.004.xml [new file with mode: 0644]
testdocs/tests/figure.001.xml [new file with mode: 0644]
testdocs/tests/footnote.001.xml [new file with mode: 0644]
testdocs/tests/formalpara.001.xml [new file with mode: 0644]
testdocs/tests/formalpara.002.xml [new file with mode: 0644]
testdocs/tests/glossary.001.xml [new file with mode: 0644]
testdocs/tests/indexterm.001.xml [new file with mode: 0644]
testdocs/tests/informalequation-mml.001.xml [new file with mode: 0644]
testdocs/tests/informaltable.001.xml [new file with mode: 0644]
testdocs/tests/informaltable.002.xml [new file with mode: 0644]
testdocs/tests/informaltable.003.xml [new file with mode: 0644]
testdocs/tests/informaltable.004.xml [new file with mode: 0644]
testdocs/tests/informaltable.005.xml [new file with mode: 0644]
testdocs/tests/informaltable.006.xml [new file with mode: 0644]
testdocs/tests/informaltable.007.xml [new file with mode: 0644]
testdocs/tests/informaltable.008.xml [new file with mode: 0644]
testdocs/tests/informaltable.009.xml [new file with mode: 0644]
testdocs/tests/informaltable.010.xml [new file with mode: 0644]
testdocs/tests/informaltable.011.xml [new file with mode: 0644]
testdocs/tests/informaltable.012.xml [new file with mode: 0644]
testdocs/tests/informaltable.013.xml [new file with mode: 0644]
testdocs/tests/informaltable.014.xml [new file with mode: 0644]
testdocs/tests/inline.001.xml [new file with mode: 0644]
testdocs/tests/itemizedlist.001.xml [new file with mode: 0644]
testdocs/tests/itemizedlist.002.xml [new file with mode: 0644]
testdocs/tests/link.001.xml [new file with mode: 0644]
testdocs/tests/literallayout.001.xml [new file with mode: 0644]
testdocs/tests/literallayout.002.xml [new file with mode: 0644]
testdocs/tests/literallayout.003.xml [new file with mode: 0644]
testdocs/tests/mediaobject.001.xml [new file with mode: 0644]
testdocs/tests/note.001.xml [new file with mode: 0644]
testdocs/tests/olink.001.xml [new file with mode: 0644]
testdocs/tests/orderedlist.001.xml [new file with mode: 0644]
testdocs/tests/orderedlist.002.xml [new file with mode: 0644]
testdocs/tests/procedure.001.xml [new file with mode: 0644]
testdocs/tests/procedure.002.xml [new file with mode: 0644]
testdocs/tests/procedure.003.xml [new file with mode: 0644]
testdocs/tests/productionset.001.xml [new file with mode: 0644]
testdocs/tests/productionset.002.xml [new file with mode: 0644]
testdocs/tests/productionset.003.xml [new file with mode: 0644]
testdocs/tests/productionset.004.xml [new file with mode: 0644]
testdocs/tests/programlisting.001.xml [new file with mode: 0644]
testdocs/tests/programlisting.002.xml [new file with mode: 0644]
testdocs/tests/programlisting.003.xml [new file with mode: 0644]
testdocs/tests/programlistingco.001.xml [new file with mode: 0644]
testdocs/tests/programlistingco.002.xml [new file with mode: 0644]
testdocs/tests/qandaset.001.xml [new file with mode: 0644]
testdocs/tests/qandaset.002.xml [new file with mode: 0644]
testdocs/tests/qandaset.003.xml [new file with mode: 0644]
testdocs/tests/refentry.001.xml [new file with mode: 0644]
testdocs/tests/refentry.002.xml [new file with mode: 0644]
testdocs/tests/refentry.003.xml [new file with mode: 0644]
testdocs/tests/reference.001.xml [new file with mode: 0644]
testdocs/tests/screen.001.xml [new file with mode: 0644]
testdocs/tests/sect1.001.xml [new file with mode: 0644]
testdocs/tests/sect1.002.xml [new file with mode: 0644]
testdocs/tests/section.001.xml [new file with mode: 0644]
testdocs/tests/section.002.xml [new file with mode: 0644]
testdocs/tests/segmentedlist.001.xml [new file with mode: 0644]
testdocs/tests/segmentedlist.002.xml [new file with mode: 0644]
testdocs/tests/set.001.xml [new file with mode: 0644]
testdocs/tests/table.001.xml [new file with mode: 0644]
testdocs/tests/table.002.xml [new file with mode: 0644]
testdocs/tests/table.003.xml [new file with mode: 0644]
testdocs/tests/template.xml [new file with mode: 0644]
testdocs/tests/toc.001.xml [new file with mode: 0644]
testdocs/tests/variablelist.001.xml [new file with mode: 0644]
testdocs/tests/variablelist.002.xml [new file with mode: 0644]
testdocs/tests/variablelist.003.xml [new file with mode: 0644]
testdocs/tests/variablelist.004.xml [new file with mode: 0644]
testdocs/tests/xref.001.xml [new file with mode: 0644]

diff --git a/testdocs/tests/admonitions.001.xml b/testdocs/tests/admonitions.001.xml
new file mode 100644 (file)
index 0000000..80563d5
--- /dev/null
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: admonitions.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<para>This article tests admonitions.</para>
+
+<tip>
+<para>This tip has no title.</para>
+</tip>
+
+<note>
+<para>This note has no title.</para>
+</note>
+
+<important>
+<para>This important has no title.</para>
+</important>
+
+<warning>
+<para>This warning has no title.</para>
+</warning>
+
+<caution>
+<para>This caution has no title.</para>
+</caution>
+
+<note>
+<title>Who can do this</title>
+<para>All operators</para>
+</note>
+
+</article>
diff --git a/testdocs/tests/bibliography.001.xml b/testdocs/tests/bibliography.001.xml
new file mode 100644 (file)
index 0000000..d1fe88f
--- /dev/null
@@ -0,0 +1,176 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE bibliography PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                       "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<bibliography>
+<bibliographyinfo>
+<title>Unit Test: bibliography.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</bibliographyinfo>
+
+<biblioentry>
+  <abbrev>AhoSethiUllman96</abbrev>
+  <authorgroup>
+    <author><firstname>Alfred V.</firstname><surname>Aho</surname></author>  
+    <author><firstname>Ravi</firstname><surname>Sethi</surname></author>
+    <author><firstname>Jeffrey D.</firstname><surname>Ullman</surname></author>
+  </authorgroup>
+  <title>Compilers, Principles, Techniques, and Tools</title>    
+  <publisher>
+    <publishername>Addison-Wesley Publishing Company</publishername>
+  </publisher>
+  <copyright><year>1996</year>
+             <holder>Bell Telephone Laboratories, Inc.</holder></copyright>
+  <isbn>0-201-10088-6</isbn>    
+  <editor><firstname>James T.</firstname><surname>DeWolf</surname></editor>
+</biblioentry>
+
+<biblioentry id="Walsh97">
+  <abbrev>Walsh97</abbrev>
+  <biblioset relation="article">
+    <title>A Guide to XML</title>
+    <author><surname>Walsh</surname><firstname>Norman</firstname></author>
+    <pubdate>1997</pubdate>
+    <copyright><year>1997</year><holder>ArborText, Inc.</holder></copyright>
+    <pagenums>97-108</pagenums>
+  </biblioset>
+  <biblioset relation="journal">
+    <title>XML: Principles, Tools, and Techniques</title>
+    <publisher>
+      <publishername>O'Reilly &amp; Associates, Inc.</publishername>
+    </publisher>
+    <issn>1085-2301</issn>
+    <editor><firstname>Dan</firstname><surname>Connolly</surname></editor>
+  </biblioset>
+</biblioentry>
+
+<biblioentry>
+<abbrev>Abbrev</abbrev>
+<title>A Really Full BiblioEntry</title>
+<subtitle>Subtitle</subtitle>
+<abstract><para>
+Abstract, abstract, abstract. Abstract, abstract, abstract. 
+Abstract, abstract, abstract. Abstract, abstract, abstract. 
+Abstract, abstract, abstract. Abstract, abstract, abstract. 
+Abstract, abstract, abstract. Abstract, abstract, abstract. 
+Abstract, abstract, abstract. Abstract, abstract, abstract. 
+Abstract, abstract, abstract. Abstract, abstract, abstract. 
+</para></abstract>
+<address>Any Street
+Anywhere, XX 99999
+USA</address>
+<affiliation>
+<shortaffil>shortaffil</shortaffil>
+<jobtitle>jobtitle</jobtitle>
+<orgname>orgname</orgname>
+<orgdiv>orgdiv</orgdiv>
+<address>Any Street
+Anywhere, XX 99999
+USA</address>
+</affiliation>
+<artpagenums>ArtPageNums</artpagenums>
+<author><firstname>AuthorFirstname</firstname><surname>AuthorSurname</surname></author>
+<authorblurb>
+<para>
+AuthorBlurb, authorblurb, authorblurb. AuthorBlurb, authorblurb, authorblurb. 
+AuthorBlurb, authorblurb, authorblurb. AuthorBlurb, authorblurb, authorblurb. 
+AuthorBlurb, authorblurb, authorblurb. AuthorBlurb, authorblurb, authorblurb. 
+AuthorBlurb, authorblurb, authorblurb. AuthorBlurb, authorblurb, authorblurb. 
+AuthorBlurb, authorblurb, authorblurb. AuthorBlurb, authorblurb, authorblurb. 
+</para></authorblurb>
+<!--<authorgroup>AuthorGroup</authorgroup>-->
+<authorinitials>AuthorInitials</authorinitials>
+<collab><collabname>The names of some collaborators</collabname>
+<affiliation>
+<shortaffil>shortaffil</shortaffil>
+<jobtitle>jobtitle</jobtitle>
+<orgname>orgname</orgname>
+<orgdiv>orgdiv</orgdiv>
+<address>Any Street
+Anywhere, XX 99999
+USA</address>
+</affiliation></collab>
+<confgroup>
+<confdates>confdates</confdates>
+<conftitle>conftitle</conftitle>
+<confnum>confnum</confnum>
+<address>Any Street
+Anywhere, XX 99999
+USA</address>
+<confsponsor>confsponsor</confsponsor>
+</confgroup>
+<contractnum>ContractNum</contractnum>
+<contractsponsor>ContractSponsor</contractsponsor>
+<contrib>Contrib</contrib>
+<copyright><year>1998</year><holder>Copyright holder</holder></copyright>
+<!--<corpauthor>CorpAuthor</corpauthor>-->
+<corpname>CorpName</corpname>
+<date>Date</date>
+<edition>Edition</edition>
+<editor><firstname>EditorFirstName</firstname><surname>EditorSurname</surname></editor>
+<firstname>FirstName</firstname>
+<honorific>Honorific</honorific>
+<isbn>ISBN</isbn>
+<issn>ISSN</issn>
+<invpartnumber>InvPartNumber</invpartnumber>
+<issuenum>IssueNum</issuenum>
+<lineage>Lineage</lineage>
+<orgname>OrgName</orgname>
+<othercredit><firstname>OCFirstName</firstname><surname>OCSurname</surname></othercredit>
+<othername>OtherName</othername>
+<pagenums>PageNums</pagenums>
+<printhistory>
+<para>
+PrintHistory, printhistory, printhistory. PrintHistory, printhistory.
+PrintHistory, printhistory, printhistory. PrintHistory, printhistory.
+PrintHistory, printhistory, printhistory. PrintHistory, printhistory.
+PrintHistory, printhistory, printhistory. PrintHistory, printhistory.
+</para></printhistory>
+<productname>ProductName</productname>
+<productnumber>ProductNumber</productnumber>
+<pubdate>PubDate</pubdate>
+<publisher><publishername>PubPublisherName</publishername>
+<address><street>Any Street</street>
+<city>Anywhere</city>, <state>XX</state> <postcode>99999</postcode>
+<country>USA</country></address>
+</publisher>
+<publishername>PublisherName</publishername>
+<pubsnumber>PubsNumber</pubsnumber>
+<releaseinfo>ReleaseInfo</releaseinfo>
+<revhistory>
+<revision>
+<revnumber>1.0</revnumber><date>20 Nov 1998</date>
+  <authorinitials>ndw</authorinitials>
+  <revremark>Some remark about the revision</revremark></revision>
+<revision>
+<revnumber>0.9</revnumber><date>19 Nov 1998</date>
+  <authorinitials>ndw</authorinitials>
+  <revremark>Some remark about the revision</revremark></revision>
+<revision>
+<revnumber>0.4</revnumber><date>18 Nov 1998</date>
+  <authorinitials>ndw</authorinitials>
+  <revremark>Some remark about the revision</revremark></revision>
+</revhistory>
+<seriesvolnums>SeriesVolNums</seriesvolnums>
+<surname>Surname</surname>
+<titleabbrev>TitleAbbrev</titleabbrev>
+<volumenum>VolumeNum</volumenum>
+</biblioentry>
+
+<bibliomixed id="Walsh96">
+  <bibliomset relation="article">
+    <surname>Walsh</surname>, <firstname>Norman</firstname>.
+    <title role="article">Introduction to Cascading Style Sheets</title>.
+  </bibliomset>
+  <bibliomset relation="journal">
+    <title>The World Wide Web Journal</title>.
+    <volumenum>2</volumenum>(<issuenum>1</issuenum>).
+    <publishername>O'Reilly &amp; Associates, Inc.</publishername> and
+    <corpname>The World Wide Web Consortium</corpname>.
+    <pubdate>Winter, 1996</pubdate></bibliomset>.
+</bibliomixed>
+
+</bibliography>
+
diff --git a/testdocs/tests/bibliography.002.xml b/testdocs/tests/bibliography.002.xml
new file mode 100644 (file)
index 0000000..a4dcec0
--- /dev/null
@@ -0,0 +1,182 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE bibliography PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                       "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<bibliography>
+<bibliographyinfo>
+<title>Unit Test: bibliography.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</bibliographyinfo>
+
+<bibliodiv><title>Entries using biblioentry</title>
+
+<biblioentry>
+  <abbrev>AhoSethiUllman96</abbrev>
+  <authorgroup>
+    <author><firstname>Alfred V.</firstname><surname>Aho</surname></author>  
+    <author><firstname>Ravi</firstname><surname>Sethi</surname></author>
+    <author><firstname>Jeffrey D.</firstname><surname>Ullman</surname></author>
+  </authorgroup>
+  <title>Compilers, Principles, Techniques, and Tools</title>    
+  <publisher>
+    <publishername>Addison-Wesley Publishing Company</publishername>
+  </publisher>
+  <copyright><year>1996</year>
+             <holder>Bell Telephone Laboratories, Inc.</holder></copyright>
+  <isbn>0-201-10088-6</isbn>    
+  <editor><firstname>James T.</firstname><surname>DeWolf</surname></editor>
+</biblioentry>
+
+<biblioentry id="Walsh97">
+  <abbrev>Walsh97</abbrev>
+  <biblioset relation="article">
+    <title>A Guide to XML</title>
+    <author><surname>Walsh</surname><firstname>Norman</firstname></author>
+    <pubdate>1997</pubdate>
+    <copyright><year>1997</year><holder>ArborText, Inc.</holder></copyright>
+    <pagenums>97-108</pagenums>
+  </biblioset>
+  <biblioset relation="journal">
+    <title>XML: Principles, Tools, and Techniques</title>
+    <publisher>
+      <publishername>O'Reilly &amp; Associates, Inc.</publishername>
+    </publisher>
+    <issn>1085-2301</issn>
+    <editor><firstname>Dan</firstname><surname>Connolly</surname></editor>
+  </biblioset>
+</biblioentry>
+
+<biblioentry>
+<abbrev>Abbrev</abbrev>
+<title>A Really Full BiblioEntry</title>
+<subtitle>Subtitle</subtitle>
+<abstract><para>
+Abstract, abstract, abstract. Abstract, abstract, abstract. 
+Abstract, abstract, abstract. Abstract, abstract, abstract. 
+Abstract, abstract, abstract. Abstract, abstract, abstract. 
+Abstract, abstract, abstract. Abstract, abstract, abstract. 
+Abstract, abstract, abstract. Abstract, abstract, abstract. 
+Abstract, abstract, abstract. Abstract, abstract, abstract. 
+</para></abstract>
+<address>Any Street
+Anywhere, XX 99999
+USA</address>
+<affiliation>
+<shortaffil>shortaffil</shortaffil>
+<jobtitle>jobtitle</jobtitle>
+<orgname>orgname</orgname>
+<orgdiv>orgdiv</orgdiv>
+<address>Any Street
+Anywhere, XX 99999
+USA</address>
+</affiliation>
+<artpagenums>ArtPageNums</artpagenums>
+<author><firstname>AuthorFirstname</firstname><surname>AuthorSurname</surname></author>
+<authorblurb>
+<para>
+AuthorBlurb, authorblurb, authorblurb. AuthorBlurb, authorblurb, authorblurb. 
+AuthorBlurb, authorblurb, authorblurb. AuthorBlurb, authorblurb, authorblurb. 
+AuthorBlurb, authorblurb, authorblurb. AuthorBlurb, authorblurb, authorblurb. 
+AuthorBlurb, authorblurb, authorblurb. AuthorBlurb, authorblurb, authorblurb. 
+AuthorBlurb, authorblurb, authorblurb. AuthorBlurb, authorblurb, authorblurb. 
+</para></authorblurb>
+<!--<authorgroup>AuthorGroup</authorgroup>-->
+<authorinitials>AuthorInitials</authorinitials>
+<collab><collabname>The names of some collaborators</collabname>
+<affiliation>
+<shortaffil>shortaffil</shortaffil>
+<jobtitle>jobtitle</jobtitle>
+<orgname>orgname</orgname>
+<orgdiv>orgdiv</orgdiv>
+<address>Any Street
+Anywhere, XX 99999
+USA</address>
+</affiliation></collab>
+<confgroup>
+<confdates>confdates</confdates>
+<conftitle>conftitle</conftitle>
+<confnum>confnum</confnum>
+<address>Any Street
+Anywhere, XX 99999
+USA</address>
+<confsponsor>confsponsor</confsponsor>
+</confgroup>
+<contractnum>ContractNum</contractnum>
+<contractsponsor>ContractSponsor</contractsponsor>
+<contrib>Contrib</contrib>
+<copyright><year>1998</year><holder>Copyright holder</holder></copyright>
+<!--<corpauthor>CorpAuthor</corpauthor>-->
+<corpname>CorpName</corpname>
+<date>Date</date>
+<edition>Edition</edition>
+<editor><firstname>EditorFirstName</firstname><surname>EditorSurname</surname></editor>
+<firstname>FirstName</firstname>
+<honorific>Honorific</honorific>
+<isbn>ISBN</isbn>
+<issn>ISSN</issn>
+<invpartnumber>InvPartNumber</invpartnumber>
+<issuenum>IssueNum</issuenum>
+<lineage>Lineage</lineage>
+<orgname>OrgName</orgname>
+<othercredit><firstname>OCFirstName</firstname><surname>OCSurname</surname></othercredit>
+<othername>OtherName</othername>
+<pagenums>PageNums</pagenums>
+<printhistory>
+<para>
+PrintHistory, printhistory, printhistory. PrintHistory, printhistory.
+PrintHistory, printhistory, printhistory. PrintHistory, printhistory.
+PrintHistory, printhistory, printhistory. PrintHistory, printhistory.
+PrintHistory, printhistory, printhistory. PrintHistory, printhistory.
+</para></printhistory>
+<productname>ProductName</productname>
+<productnumber>ProductNumber</productnumber>
+<pubdate>PubDate</pubdate>
+<publisher><publishername>PubPublisherName</publishername>
+<address><street>Any Street</street>
+<city>Anywhere</city>, <state>XX</state> <postcode>99999</postcode>
+<country>USA</country></address>
+</publisher>
+<publishername>PublisherName</publishername>
+<pubsnumber>PubsNumber</pubsnumber>
+<releaseinfo>ReleaseInfo</releaseinfo>
+<revhistory>
+<revision>
+<revnumber>1.0</revnumber><date>20 Nov 1998</date>
+  <authorinitials>ndw</authorinitials>
+  <revremark>Some remark about the revision</revremark></revision>
+<revision>
+<revnumber>0.9</revnumber><date>19 Nov 1998</date>
+  <authorinitials>ndw</authorinitials>
+  <revremark>Some remark about the revision</revremark></revision>
+<revision>
+<revnumber>0.4</revnumber><date>18 Nov 1998</date>
+  <authorinitials>ndw</authorinitials>
+  <revremark>Some remark about the revision</revremark></revision>
+</revhistory>
+<seriesvolnums>SeriesVolNums</seriesvolnums>
+<surname>Surname</surname>
+<titleabbrev>TitleAbbrev</titleabbrev>
+<volumenum>VolumeNum</volumenum>
+</biblioentry>
+
+</bibliodiv>
+<bibliodiv><title>Entries using bibliomixed</title>
+
+<bibliomixed id="Walsh96">
+  <bibliomset relation="article">
+    <surname>Walsh</surname>, <firstname>Norman</firstname>.
+    <title role="article">Introduction to Cascading Style Sheets</title>.
+  </bibliomset>
+  <bibliomset relation="journal">
+    <title>The World Wide Web Journal</title>.
+    <volumenum>2</volumenum>(<issuenum>1</issuenum>).
+    <publishername>O'Reilly &amp; Associates, Inc.</publishername> and
+    <corpname>The World Wide Web Consortium</corpname>.
+    <pubdate>Winter, 1996</pubdate></bibliomset>.
+</bibliomixed>
+
+</bibliodiv>
+
+</bibliography>
diff --git a/testdocs/tests/book.001.xml b/testdocs/tests/book.001.xml
new file mode 100644 (file)
index 0000000..b9bbad2
--- /dev/null
@@ -0,0 +1,278 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
+<!ENTITY blah "<para>Blah blah blah blah. Blah blah blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+</para>">
+]>
+<book>
+<bookinfo>
+<title>Unit Test: book.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<authorgroup>
+<corpauthor>SomeCorp</corpauthor>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+<editor><firstname>Jane</firstname><surname>Doe</surname></editor>
+</authorgroup>
+<legalnotice>
+<para>
+Some legal notice. Some legal notice. Some legal notice.
+Some legal notice. Some legal notice. Some legal notice.
+Some legal notice. Some legal notice. Some legal notice.
+Some legal notice. Some legal notice. Some legal notice.
+Some legal notice. Some legal notice. Some legal notice.
+Some legal notice. Some legal notice. Some legal notice.
+Some legal notice. Some legal notice. Some legal notice.
+Some legal notice. Some legal notice. Some legal notice.
+Some legal notice. Some legal notice. Some legal notice.
+Some legal notice. Some legal notice. Some legal notice.
+</para>
+</legalnotice>
+<copyright>
+<year>1998</year>
+<year>1999</year>
+<year>2000</year>
+<year>2001</year>
+<year>2002</year>
+<holder>Norman Walsh</holder>
+</copyright>
+<pubdate>18 January 2002</pubdate>
+<abstract>
+<para>Some abstract. Some abstract. Some abstract. Some abstract.
+Some abstract. Some abstract. Some abstract. Some abstract.
+Some abstract. Some abstract. Some abstract. Some abstract.
+Some abstract. Some abstract. Some abstract. Some abstract.
+Some abstract. Some abstract. Some abstract. Some abstract.
+Some abstract. Some abstract. Some abstract. Some abstract.
+</para>
+<para>Some abstract. Some abstract. Some abstract. Some abstract.
+Some abstract. Some abstract. Some abstract. Some abstract.
+</para>
+</abstract>
+<revhistory>
+<revision>
+<revnumber>1.1</revnumber>
+<date>18 Jan 2002</date>
+<authorinitials>ndw</authorinitials>
+<revremark>Reworked.</revremark>
+</revision>
+<revision>
+<revnumber>1.0</revnumber>
+<date>20 Nov 1998</date>
+<authorinitials>ndw</authorinitials>
+<revremark>Some remark about the revision</revremark>
+</revision>
+<revision>
+<revnumber>0.9</revnumber>
+<date>19 Nov 1998</date>
+<authorinitials>ndw</authorinitials>
+<revremark>Some remark about the revision</revremark>
+</revision>
+<revision>
+<revnumber>0.4</revnumber>
+<date>18 Nov 1998</date>
+<authorinitials>ndw</authorinitials>
+<revremark>Some remark about the revision</revremark>
+</revision>
+</revhistory>
+</bookinfo>
+
+<dedication><title>First Dedication</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</dedication>
+
+<dedication>
+
+<para>A second dedication without a title.</para>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</dedication>
+
+<preface><title>Foreword</title>
+<?dbhtml filename="forward.html"?>
+
+<para>A preface.</para>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</preface>
+
+<preface><title>Preface</title>
+
+<para>Another preface.</para>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</preface>
+
+<part>
+<title>Part One Title</title>
+<partintro>
+<title>PartIntro Title</title>
+
+<para>Partintro content<footnote>
+<para>This is a footnote in a partintro.</para>
+</footnote>.</para>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+<sect1>
+<title>PartIntro Section</title>
+<para>PartIntros can actually have section content as well.</para>
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+</sect1>
+</partintro>
+
+<chapter id="chapter"><title>First Chapter</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+<section><title>First Section</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</section>
+<section><title>Second Section</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</section>
+<section><title>Third Section</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</section>
+</chapter>
+
+<chapter><title>Second Chapter</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+<section><title>First Section</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</section>
+<section><title>Second Section</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</section>
+<section><title>Third Section</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</section>
+</chapter>
+
+<chapter><title>Third Chapter</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</chapter>
+
+</part>
+<part><title>Appendixes</title>
+
+<appendix><title>First Appendix</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+<section><title>First Section</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</section>
+<section><title>Second Section</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</section>
+<section><title>Third Section</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</section>
+</appendix>
+
+<appendix><title>Second Appendix</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+<section><title>First Section</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</section>
+<section><title>Second Section</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</section>
+<section><title>Third Section</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</section>
+</appendix>
+
+</part>
+</book>
diff --git a/testdocs/tests/book.002.xml b/testdocs/tests/book.002.xml
new file mode 100644 (file)
index 0000000..3a69bfb
--- /dev/null
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
+<!ENTITY blah "<para>Blah blah blah blah. Blah blah blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+</para>">
+]>
+<book>
+<bookinfo>
+<title>Unit Test: book.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</bookinfo>
+
+<article><title>First Article</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</article>
+
+<article><title>Second Article</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</article>
+
+<article><title>Third Article</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</article>
+
+</book>
diff --git a/testdocs/tests/bookinfo.001.xml b/testdocs/tests/bookinfo.001.xml
new file mode 100644 (file)
index 0000000..6f36558
--- /dev/null
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<book>
+<bookinfo>
+<title>Unit Test: bookinfo.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+
+<abstract>
+<para>Some abstract. Some abstract. Some abstract. Some abstract.
+Some abstract. Some abstract. Some abstract. Some abstract.
+Some abstract. Some abstract. Some abstract. Some abstract.
+Some abstract. Some abstract. Some abstract. Some abstract.
+Some abstract. Some abstract. Some abstract. Some abstract.
+Some abstract. Some abstract. Some abstract. Some abstract.
+</para>
+<para>Some abstract. Some abstract. Some abstract. Some abstract.
+Some abstract. Some abstract. Some abstract. Some abstract.
+</para>
+</abstract>
+
+<authorgroup id="authors">
+<author id="j.doe">
+<firstname>John</firstname>
+<surname>Doe</surname>
+</author>
+<author>
+<firstname>Jane</firstname>
+<surname>Doe</surname>
+<contrib>Some contribution</contrib>
+</author>
+<author>
+<firstname>A.</firstname>
+<surname>Nonymous</surname>
+</author>
+<author>
+<firstname>Janice</firstname>
+<surname>Doe</surname>
+</author>
+</authorgroup>
+
+<keywordset>
+<keyword>keyword1</keyword>
+<keyword>keyword2</keyword>
+</keywordset>
+
+<pubdate>18 January 2002</pubdate>
+
+<revhistory>
+<revision>
+<revnumber>2.0</revnumber>
+<date>18 Jan 2002</date>
+<authorinitials>ndw</authorinitials>
+<revremark>Some remark about the revision</revremark>
+</revision>
+<revision>
+<revnumber>1.0</revnumber>
+<date>20 Nov 1998</date>
+<authorinitials>ndw</authorinitials>
+<revremark>Some remark about the revision</revremark>
+</revision>
+<revision>
+<revnumber>0.9</revnumber>
+<date>19 Nov 1998</date>
+<authorinitials>ndw</authorinitials>
+<revremark>Some remark about the revision</revremark>
+</revision>
+<revision>
+<revnumber>0.4</revnumber>
+<date>18 Nov 1998</date>
+<authorinitials>ndw</authorinitials>
+<revremark>Some remark about the revision</revremark>
+</revision>
+</revhistory>
+
+</bookinfo>
+
+<preface><title>Preface</title>
+
+<para>This book is really just a bookinfo test.</para>
+
+</preface>
+
+</book>
diff --git a/testdocs/tests/bridgehead.001.xml b/testdocs/tests/bridgehead.001.xml
new file mode 100644 (file)
index 0000000..e6dd6c6
--- /dev/null
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: bridgehead.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<para>A test paragraph.</para>
+
+<sect1>
+  <title>sect1 title</title>
+  <subtitle>sect1 subtitle</subtitle>
+
+  <para>This is a test paragraph.</para>
+
+  <bridgehead renderas="sect1">This is a sect1 bridgehead</bridgehead>
+
+  <para>This is a test paragraph.</para>
+
+  <sect2>
+    <title>first sect2 title</title>
+    <para>Please read <xref linkend="sec-xrefMe"/></para>
+
+    <bridgehead>This is an implied sect3 bridgehead</bridgehead>
+
+    <para>This is a test paragraph.</para>
+
+  </sect2>
+
+  <sect2 id="sec-xrefMe">
+    <title>second sect2 title</title>
+    <para>This is a test paragraph.</para>
+  </sect2>
+</sect1>
+
+</article>
diff --git a/testdocs/tests/calloutlist.001.xml b/testdocs/tests/calloutlist.001.xml
new file mode 100644 (file)
index 0000000..ef38ed7
--- /dev/null
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: calloutlist.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<para>Callouts using <sgmltag>co</sgmltag>:</para>
+
+<screen>
+(let <co id="dl1"/>loopvar <co id="dl2"/>((count 1))
+  <co id="dl3"/>(if (> count 10)
+    <co id="dl4"/>#t
+    (<co id="dl5"/>loopvar <co id="dl6"/>(+ count 1))))</screen>
+
+<calloutlist>
+<callout arearefs="dl1">
+<para>This variable controls the loop. It is declared without an
+initial value, immediately after the <literal>let</literal>
+operand.</para>
+</callout>
+<callout arearefs="dl2">
+<para>Any number of additional local variables can be defined after
+the loop variable, just as they can in any other
+<literal>let</literal> expression.</para>
+</callout>
+<callout arearefs="dl3">
+<para>If you ever want the loop to end, you have to put some sort of a
+test in it.</para>
+</callout>
+<callout arearefs="dl4">
+<para>This is the value that will be returned.</para>
+</callout>
+<callout arearefs="dl5">
+<para>Note that you iterate the loop by using the loop variable as if
+it was a function name.</para>
+</callout>
+<callout arearefs="dl6">
+<para>The arguments to this function are the values that
+you want the local variables declared in <xref linkend="dl2"/> to have
+in the next iteration.</para>
+</callout>
+</calloutlist>
+
+</article>
diff --git a/testdocs/tests/classsynopsis.001.xml b/testdocs/tests/classsynopsis.001.xml
new file mode 100644 (file)
index 0000000..a73510f
--- /dev/null
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: classsynopsis.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<classsynopsis>
+<ooclass>
+<modifier>public</modifier>
+<classname>Catalog</classname>
+</ooclass>
+<fieldsynopsis>
+<modifier>public</modifier>
+<modifier>static</modifier>
+<modifier>final</modifier>
+<type>int</type>
+<varname>BASE</varname>
+<initializer>CatalogEntry.addEntryType("BASE", 1)</initializer>
+</fieldsynopsis>
+<constructorsynopsis>
+<modifier>public</modifier>
+<methodname>Catalog</methodname>
+<void/>
+</constructorsynopsis>
+<methodsynopsis>
+<modifier>protected</modifier>
+<void/>
+<methodname>copyReaders</methodname>
+<methodparam>
+<type>Catalog</type>
+<parameter>newCatalog</parameter>
+</methodparam>
+</methodsynopsis>
+</classsynopsis>
+
+</article>
diff --git a/testdocs/tests/equation.001.xml b/testdocs/tests/equation.001.xml
new file mode 100644 (file)
index 0000000..5b56571
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: equation.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<equation><title>First Equation</title>
+<mediaobject>
+<imageobject>
+<imagedata fileref="emc2.png"/>
+</imageobject>
+<textobject>
+<phrase>e=mc^2</phrase>
+</textobject>
+</mediaobject>
+</equation>
+
+</article>
diff --git a/testdocs/tests/equation.002.xml b/testdocs/tests/equation.002.xml
new file mode 100644 (file)
index 0000000..ef17a29
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: equation.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<equation id="eq2"><title>Second Equation</title>
+<mediaobject>
+<imageobject>
+<imagedata fileref="emc2.png"/>
+</imageobject>
+<textobject>
+<phrase>e=mc^2</phrase>
+</textobject>
+</mediaobject>
+</equation>
+
+</article>
diff --git a/testdocs/tests/equation.003.xml b/testdocs/tests/equation.003.xml
new file mode 100644 (file)
index 0000000..1a1c3f8
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: equation.003</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<equation><title>Third Equation</title>
+<mediaobject>
+<imageobject>
+<imagedata fileref="emc2.png"/>
+</imageobject>
+<textobject>
+<phrase>e=mc^2</phrase>
+</textobject>
+</mediaobject>
+</equation>
+
+</article>
diff --git a/testdocs/tests/example.001.xml b/testdocs/tests/example.001.xml
new file mode 100644 (file)
index 0000000..7fdc1fa
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: example.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<example><title>An Example</title>
+<programlisting>
+This is a programlisting in an example.
+</programlisting>
+</example>
+
+</article>
diff --git a/testdocs/tests/extensions.001.xml b/testdocs/tests/extensions.001.xml
new file mode 100644 (file)
index 0000000..552437d
--- /dev/null
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: extensions.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<para>Callouts using <sgmltag>programlistingco</sgmltag>. The following program
+listing should be decorated with callout bullets:</para>
+
+<programlistingco>
+<areaspec>
+<area coords="1" id="prologue"/>
+<area coords="4" id="skipeof"/>
+<areaset coords="" id="xreq">
+<area coords="9" id="require1"/>
+<area coords="10" id="require2"/>
+</areaset>
+<area coords="11 12" id="use"/>
+<area coords="27" id="funccall"/>
+</areaspec>
+<programlisting>@rem = '--*-Perl-*--
+@echo off
+perl.exe %_batchname %$
+goto endofperl
+@rem ';
+
+# Compress mail...
+
+require 'n:/home/nwalsh/lib/cygnus.pl';
+require 'timelocal.pl';
+use Cwd;
+
+select (STDERR); $| = 1;
+select (STDOUT); $| = 1;
+
+@DIRS = ("/home/nwalsh/Mail");
+while (@DIRS) {
+    $dir = shift @DIRS;
+    opendir (DIR, $dir);
+    while ($fname = readdir(DIR)) {
+        $file = "$dir/$fname";
+        next if ! -d $file;
+        next if $fname =~ /^\.\.?$/;
+
+        print "$file\n";
+        push (@DIRS, $file);
+        &amp;compress ($file);
+    }
+}
+
+exit;</programlisting>
+<calloutlist>
+<callout arearefs="prologue">
+<para>The prologue handles embedding a Perl script in a DOS batch file.</para>
+</callout>
+<callout arearefs="skipeof">
+<para>The <literal>goto</literal> statement, interpreted by the DOS batch
+file interpreter, skips over the body of the Perl script.</para>
+</callout>
+<callout arearefs="require1">
+<para>The <literal>require</literal> statement sources in external program
+fragments.</para>
+</callout>
+<callout arearefs="use">
+<para>The <literal>use</literal> statement is similar, but has additional
+utility.  It is a Perl5 function.  (Note that this callout area specifies
+both a line and a column.)</para>
+</callout>
+<callout arearefs="funccall">
+<para>This is a user subroutine call.</para>
+</callout>
+</calloutlist>
+</programlistingco>
+
+</article>
diff --git a/testdocs/tests/extensions.002.xml b/testdocs/tests/extensions.002.xml
new file mode 100644 (file)
index 0000000..de94da9
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: extensions.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<para>Text insert. The source of this document should appear between</para>
+
+<programlisting><inlinemediaobject>
+<imageobject>
+<imagedata format="linespecific" fileref="extensions.002.xml"/>
+</imageobject>
+</inlinemediaobject></programlisting>
+
+<para>these two lines.</para>
+
+</article>
diff --git a/testdocs/tests/extensions.003.xml b/testdocs/tests/extensions.003.xml
new file mode 100644 (file)
index 0000000..0d13c57
--- /dev/null
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: extensions.003</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<para>This program listing should be numbered:</para>
+
+<programlisting linenumbering="numbered">@rem = '--*-Perl-*--
+@echo off
+perl.exe %_batchname %$
+goto endofperl
+@rem ';
+
+# Compress mail...
+
+require 'n:/home/nwalsh/lib/cygnus.pl';
+require 'timelocal.pl';
+use Cwd;
+
+select (STDERR); $| = 1;
+select (STDOUT); $| = 1;
+
+@DIRS = ("/home/nwalsh/Mail");
+while (@DIRS) {
+    $dir = shift @DIRS;
+    opendir (DIR, $dir);
+    while ($fname = readdir(DIR)) {
+        $file = "$dir/$fname";
+        next if ! -d $file;
+        next if $fname =~ /^\.\.?$/;
+
+        print "$file\n";
+        push (@DIRS, $file);
+        &amp;compress ($file);
+    }
+}
+
+exit;</programlisting>
+
+</article>
diff --git a/testdocs/tests/extensions.004.xml b/testdocs/tests/extensions.004.xml
new file mode 100644 (file)
index 0000000..d63d528
--- /dev/null
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: extensions.004</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<para>The following programlisting should contain the source for this
+document. The source should be numbered and decorated with callout marks.
+</para>
+
+<programlistingco>
+<areaspec>
+<area coords="13" id="plco"/>
+<area coords="15" id="areas"/>
+<area coords="21" id="pl"/>
+<area coords="22" id="pi"/>
+<area coords="26" id="textinsert"/>
+</areaspec>
+<programlisting linenumbering="numbered"
+><?dbhtml linenumbering.everyNth="2" linenumbering.separator=" >"
+?><?dbfo linenumbering.everyNth="2" linenumbering.separator=" >"
+?><inlinemediaobject>
+<imageobject>
+<imagedata format="linespecific" fileref="extensions.004.xml"/>
+</imageobject>
+</inlinemediaobject></programlisting>
+</programlistingco>
+
+</article>
diff --git a/testdocs/tests/figure.001.xml b/testdocs/tests/figure.001.xml
new file mode 100644 (file)
index 0000000..f1f89cc
--- /dev/null
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: figure.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<figure id="figduck">
+  <title>The Duck</title>
+  <mediaobject>
+    <imageobject>
+      <imagedata
+        align="center"
+        fileref="graphics/duck-small.gif"
+        format="GIF"
+        srccredit="O'Reilly &amp; Associates/Dover Archives"/>
+    </imageobject>
+    <imageobject>
+      <imagedata
+        align="center"
+        fileref="graphics/duck-small.png"
+        format="PNG"
+        srccredit="O'Reilly &amp; Associates/Dover Archives"/>
+    </imageobject>
+    <textobject><phrase>The DocBook: TDG Duck</phrase></textobject>
+  </mediaobject>
+</figure>
+
+</article>
diff --git a/testdocs/tests/footnote.001.xml b/testdocs/tests/footnote.001.xml
new file mode 100644 (file)
index 0000000..c84786d
--- /dev/null
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: footnote.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+ <para>This paragraph contains a footnote<footnote>
+<para>This is a footnote.</para></footnote>.</para>
+
+ <sect1><title>First Section</title>
+  <para>A paragraph.</para>
+ <para>This paragraph contains a footnote<footnote>
+<para>This is another footnote.</para></footnote>.</para>
+ </sect1>
+
+ <sect1>
+  <title>Section Title<footnote>
+      <para>Boring, I know, but it just tests the fact that a footnote
+can occur in a title.</para></footnote></title>
+  <para>A paragraph.</para>
+
+ <sect2>
+  <title>Subsection Title</title>
+ <para>This paragraph contains a footnote<footnote>
+<para>This is yet another footnote.</para></footnote>.</para>
+  </sect2>
+
+  </sect1>
+
+</article>
diff --git a/testdocs/tests/formalpara.001.xml b/testdocs/tests/formalpara.001.xml
new file mode 100644 (file)
index 0000000..e8ce6cd
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: formalpara.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<formalpara><title>Test title</title>
+<para>Some para</para>
+</formalpara>
+
+</article>
diff --git a/testdocs/tests/formalpara.002.xml b/testdocs/tests/formalpara.002.xml
new file mode 100644 (file)
index 0000000..39068c9
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: formalpara.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<formalpara><title>Test title:</title>
+<para>Some para</para>
+</formalpara>
+
+</article>
diff --git a/testdocs/tests/glossary.001.xml b/testdocs/tests/glossary.001.xml
new file mode 100644 (file)
index 0000000..ebfc92c
--- /dev/null
@@ -0,0 +1,273 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE glossary PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                   "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<glossary>
+<glossaryinfo>
+<title>Unit Test: glossary.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<editor><firstname>Eric</firstname><surname>Raymond</surname></editor>
+<subtitle>Jargon File 4.2.3 (abridged)</subtitle>
+<releaseinfo>Just some test data</releaseinfo>
+</glossaryinfo>
+
+<glossdiv><title>0</title>
+
+<glossentry>
+<glossterm>0</glossterm>
+<glossdef>
+<para>Numeric zero, as opposed to the letter `O' (the 15th letter of
+the English alphabet). In their unmodified forms they look a lot
+alike, and various kluges invented to make them visually distinct have
+compounded the confusion. If your zero is center-dotted and letter-O
+is not, or if letter-O looks almost rectangular but zero looks more
+like an American football stood on end (or the reverse), you're
+probably looking at a modern character display (though the dotted zero
+seems to have originated as an option on IBM 3270 controllers). If
+your zero is slashed but letter-O is not, you're probably looking at
+an old-style ASCII graphic set descended from the default typewheel on
+the venerable ASR-33 Teletype (Scandinavians, for whom /O is a letter,
+curse this arrangement). (Interestingly, the slashed zero long
+predates computers; Florian Cajori's monumental "A History of
+Mathematical Notations" notes that it was used in the twelfth and
+thirteenth centuries.) If letter-O has a slash across it and the zero
+does not, your display is tuned for a very old convention used at IBM
+and a few other early mainframe makers (Scandinavians curse <emphasis>this</emphasis>
+arrangement even more, because it means two of their letters collide).
+Some Burroughs/Unisys equipment displays a zero with a <emphasis>reversed</emphasis>
+slash. Old CDC computers rendered letter O as an unbroken oval and 0
+as an oval broken at upper right and lower left. And yet another
+convention common on early line printers left zero unornamented but
+added a tail or hook to the letter-O so that it resembled an inverted
+Q or cursive capital letter-O (this was endorsed by a draft ANSI
+standard for how to draw ASCII characters, but the final standard
+changed the distinguisher to a tick-mark in the upper-left corner).
+Are we sufficiently confused yet?</para>
+</glossdef>
+</glossentry>
+
+<glossentry>
+<glossterm>1TBS</glossterm>
+<glossdef>
+<para role="pos">
+<phrase role="pronounce"></phrase>
+<phrase role="partsofspeach">n</phrase>
+</para>
+<para>The "One True Brace Style"</para>
+<glossseealso>indent style</glossseealso>
+</glossdef>
+</glossentry>
+
+<glossentry>
+<glossterm>120 reset</glossterm>
+<glossdef>
+<para role="pos">
+<phrase role="pronounce">wuhn-twen'tee ree'set</phrase>
+<phrase role="partofspeach">n</phrase>
+</para>
+<para>[from 120 volts, U.S. wall voltage] To cycle power on a machine
+in order to reset or unjam it. Compare <glossterm>Big Red Switch</glossterm>,
+<glossterm>power cycle</glossterm>.</para>
+</glossdef>
+</glossentry>
+
+<glossentry>
+<glossterm>2</glossterm>
+<glossdef>
+<para>infix. In translation software written by hackers, infix 2 often
+represents the syllable <emphasis>to</emphasis> with the connotation
+<quote>translate to</quote>: as in dvi2ps (DVI to PostScript), int2string (integer
+to string), and texi2roff (Texinfo to [nt]roff). Several versions of a
+joke have floated around the internet in which some idiot programmer
+fixes the Y2K bug by changing all the Y's in something to K's, as in
+Januark, Februark, etc.</para>
+</glossdef>
+</glossentry>
+
+<glossentry>
+<glossterm>@-party</glossterm>
+<glossdef>
+<para role="pos">
+<phrase role="pronounce">at'par`tee</phrase>
+<phrase role="partofspeach">n</phrase>
+</para>
+<para>[from the @-sign in an Internet
+address] (alt. `@-sign party' <phrase role="pronounce">at'si:n
+par`tee</phrase>) A semi-closed party thrown for hackers at a
+science-fiction convention (esp. the annual World Science Fiction
+Convention or "Worldcon"); one must have a {network address} to get
+in, or at least be in company with someone who does. One of the most
+reliable opportunities for hackers to meet face to face with people
+who might otherwise be represented by mere phosphor dots on their
+screens. Compare <glossterm>boink</glossterm>.
+</para>
+<para>The first recorded @-party was held at the Westercon (a U.S.
+western regional SF convention) over the July 4th weekend in 1980.
+It is not clear exactly when the canonical @-party venue shifted to the
+Worldcon but it had certainly become established by Constellation in 1983.
+Sadly, the @-party tradition has been in decline since about 1996, mainly
+because having an @-address no longer functions as an effective lodge pin.
+</para>
+</glossdef>
+</glossentry>
+</glossdiv>
+
+<glossdiv><title>A</title>
+
+<glossentry>
+<glossterm>abbrev</glossterm>
+<glossdef>
+<para role="pos">
+<phrase role="pronounce">*-breev'</phrase>
+<phrase role="pronounce">*-brev'</phrase>
+<phrase role="partofspeach">n</phrase>
+</para>
+<para>Common abbreviation for <quote>abbreviation</quote>.</para>
+</glossdef>
+</glossentry>
+
+<glossentry>
+<glossterm>ABEND</glossterm>
+<glossdef>
+<para role="pos">
+<phrase role="pronounce">a'bend</phrase>
+<phrase role="pronounce">*-bend'</phrase>
+<phrase role="partofspeach">n</phrase>
+</para>
+<para>[ABnormal END] 1. Abnormal
+termination (of software); {crash}; {lossage}. Derives from an error
+message on the IBM 360; used jokingly by hackers but seriously mainly
+by {code grinder}s.  Usually capitalized, but may appear as `abend'.
+Hackers will try to persuade you that ABEND is called `abend' because
+it is what system operators do to the machine late on Friday when
+they want to call it a day, and hence is from the German `Abend' =
+`Evening'.  2. [alt.callahans] Absent By Enforced Net Deprivation -
+used in the subject lines of postings warning friends of an imminent
+loss of Internet access.  (This can be because of computer downtime,
+loss of provider, moving or illness.)  Variants of this also appear:
+ABVND = `Absent By Voluntary Net Deprivation' and ABSEND = `Absent By
+Self-Enforced Net Deprivation' have been sighted.</para>
+</glossdef>
+</glossentry>
+
+<glossentry>
+<glossterm>ACK</glossterm>
+<glossdef>
+<para role="pos">
+<phrase role="pronounce">ak</phrase>
+<phrase role="partofspeach">interj</phrase>
+</para>
+<para>1. [common; from the ASCII mnemonic for
+0000110] Acknowledge. Used to register one's presence (compare
+mainstream <emphasis>Yo!</emphasis>emphasis>). An appropriate response
+to {ping} or {ENQ}. 2. [from the comic strip "Bloom County"] An
+exclamation of surprised disgust, esp. in "Ack pffft!" Semi-humorous.
+Generally this sense is not spelled in caps (ACK) and is distinguished
+by a following exclamation point. 3. Used to politely interrupt
+someone to tell them you understand their point (see {NAK}). Thus, for
+example, you might cut off an overly long explanation with "Ack. Ack.
+Ack. I get it now". 4. An affirmative. "Think we ought to ditch that
+damn NT server for a Linux box?" "ACK!"
+</para>
+<para>There is also a usage "ACK?" (from sense 1) meaning "Are you
+there?", often used in email when earlier mail has produced no reply,
+or during a lull in {talk mode} to see if the person has gone away
+(the standard humorous response is of course {NAK} (sense 1), i.e.,
+"I'm not here").</para>
+</glossdef>
+</glossentry>
+</glossdiv>
+
+<glossdiv><title>B</title>
+
+<glossentry>
+<glossterm>B5</glossterm>
+<glossdef>
+<para role="pos">
+<phrase role="pronounce"></phrase>
+</para>
+<para>[common] Abbreviation for "Babylon 5", a science-fiction
+TV series as revered among hackers as was the original Star Trek.
+</para>
+</glossdef>
+</glossentry>
+
+<glossentry>
+<glossterm>back door</glossterm>
+<glossdef>
+<para role="pos">
+<phrase role="partofspeach">n</phrase>
+</para>
+<para>[common] A hole in the security of a system
+deliberately left in place by designers or maintainers.  The motivation
+for such holes is not always sinister; some operating systems, for
+example, come out of the box with privileged accounts intended for use
+by field service technicians or the vendor's maintenance programmers.
+Syn. {trap door}; may also be called a `wormhole'.  See also {iron box},
+{cracker}, {worm}, {logic bomb}.
+</para>
+<para>Historically, back doors have often lurked in systems longer than
+anyone expected or planned, and a few have become widely known.  Ken
+Thompson's 1983 Turing Award lecture to the ACM admitted the existence
+of a back door in early Unix versions that may have qualified as the
+most fiendishly clever security hack of all time.  In this scheme, the
+C compiler contained code that would recognize when the `login' command
+was being recompiled and insert some code recognizing a password chosen
+by Thompson, giving him entry to the system whether or not an account
+had been created for him.
+</para>
+<para>Normally such a back door could be removed by removing it from the
+source code for the compiler and recompiling the compiler.  But to
+recompile the compiler, you have to <emphasis>use</emphasis> the compiler -- so Thompson
+also arranged that the compiler would <emphasis>recognize when it was compiling a
+version of itself</emphasis>, and insert into the recompiled compiler the code to
+insert into the recompiled `login' the code to allow Thompson entry --
+and, of course, the code to recognize itself and do the whole thing again
+the next time around!  And having done this once, he was then able to
+recompile the compiler from the original sources; the hack perpetuated
+itself invisibly, leaving the back door in place and active but with no
+trace in the sources.
+</para>
+<para>The talk that suggested this truly moby hack was published as
+"Reflections on Trusting Trust", "Communications of the ACM 27", 8 (August
+1984), pp. 761-763 (text available at `http://www.acm.org/classics').
+Ken Thompson has since confirmed that this hack was implemented and that
+the Trojan Horse code did appear in the login binary of a Unix Support
+group machine. Ken says the crocked compiler was never distributed.
+Your editor has heard two separate reports that suggest that the crocked
+login did make it out of Bell Labs, notably to BBN, and that it enabled
+at least one late-night login across the network by someone using the
+login name `kt'.
+</para>
+</glossdef>
+</glossentry>
+
+<glossentry>
+<glossterm>backbone cabal</glossterm>
+<glossdef>
+<para role="pos">
+<phrase role="partofspeach">n</phrase>
+</para>
+<para>A group of large-site administrators who
+pushed through the {Great Renaming} and reined in the chaos of {Usenet}
+during most of the 1980s.  During most of its lifetime, the Cabal (as
+it was sometimes capitalized) steadfastly denied its own existence;
+it was almost obligatory for anyone privy to their secrets to respond
+"There is no Cabal" whenever the existence or activities of the group
+were speculated on in public.
+</para>
+<para>The result of this policy was an attractive aura of mystery.  Even
+a decade after the cabal {mailing list} disbanded in late 1988 following
+a bitter internal catfight, many people believed (or claimed to believe)
+that it had not actually disbanded but only gone deeper underground with
+its power intact.</para>
+
+<para>This belief became a model for various paranoid theories about
+various Cabals with dark nefarious objectives beginning with taking over
+the Usenet or Internet.  These paranoias were later satirized in ways
+that took on a life of their own.  See {Eric Conspiracy} for one example.</para>
+
+<para>See {NANA} for the subsequent history of "the Cabal".</para>
+</glossdef>
+</glossentry>
+</glossdiv>
+</glossary>
diff --git a/testdocs/tests/indexterm.001.xml b/testdocs/tests/indexterm.001.xml
new file mode 100644 (file)
index 0000000..ec61c33
--- /dev/null
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<book>
+<bookinfo>
+<title>Unit Test: indexterm.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</bookinfo>
+
+<chapter><title>First Chapter</title>
+
+<para>This is a test paragraph.
+<indexterm>
+<primary>ap1</primary>
+</indexterm>
+<indexterm>
+<primary>ap2</primary>
+</indexterm>
+
+<indexterm>
+<primary>bp1</primary>
+<secondary>bp1bs1</secondary>
+</indexterm>
+<indexterm>
+<primary>bp2</primary>
+</indexterm>
+
+<indexterm>
+<primary>cp1</primary>
+<secondary>cp1cs1</secondary>
+<tertiary>cp1cs1ct1</tertiary>
+</indexterm>
+
+<indexterm>
+<primary>cp2</primary>
+</indexterm>
+<indexterm>
+<primary>cp2see</primary><see>cp2</see>
+</indexterm>
+
+<indexterm>
+<primary>dp1</primary>
+<secondary>dp1ds1</secondary>
+</indexterm>
+<indexterm>
+<primary>dp1</primary>
+<secondary>dp1ds2</secondary>
+</indexterm>
+<indexterm>
+<primary>dp2</primary>
+</indexterm></para>
+
+</chapter>
+
+<appendix><title>First Appendix</title>
+
+<para>This is just a test.
+<indexterm>
+<primary>ap1</primary>
+</indexterm>
+<indexterm>
+<primary>ap2</primary>
+</indexterm>
+
+<indexterm>
+<primary>bp1</primary>
+<secondary>bp1bs1</secondary>
+</indexterm>
+<indexterm>
+<primary>bp2</primary>
+</indexterm>
+
+<indexterm>
+<primary>cp1</primary>
+<secondary>cp1cs1</secondary>
+<tertiary>cp1cs1ct1</tertiary>
+</indexterm>
+<indexterm>
+<primary>cp2</primary>
+</indexterm>
+
+<indexterm>
+<primary>dp1</primary>
+<secondary>dp1ds1</secondary>
+</indexterm>
+<indexterm>
+<primary>dp1</primary>
+<secondary>dp1ds2</secondary>
+</indexterm>
+<indexterm>
+<primary>dp2</primary>
+</indexterm></para>
+</appendix>
+
+<index id="idx"/>
+
+</book>
diff --git a/testdocs/tests/informalequation-mml.001.xml b/testdocs/tests/informalequation-mml.001.xml
new file mode 100644 (file)
index 0000000..e6abf25
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook MathML Module V1.0//EN"
+                  "http://www.oasis-open.org/docbook/xml/mathml/1.0/dbmathml.dtd" [
+<!ENTITY % local.article.attrib "xmlns:mml CDATA #REQUIRED">
+]>
+<article xmlns:mml="http://www.w3.org/1998/Math/MathML">
+<articleinfo>
+<title>Unit Test: informalequation-mml.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<informalequation>
+<mml:math><mml:apply><mml:divide/></mml:apply></mml:math>
+</informalequation>
+
+</article>
diff --git a/testdocs/tests/informaltable.001.xml b/testdocs/tests/informaltable.001.xml
new file mode 100644 (file)
index 0000000..a4cf670
--- /dev/null
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: informaltable.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<!--
++........+........+........+........+
+|        |   B    |        |   D    |
++   A    +........+   C    +........+
+|        |        |        |   E    |
++........+........+........+........+
+-->
+
+<informaltable frame="all">
+<tgroup cols="4">
+<colspec colname="c4a" colnum="4"/>
+<tbody>
+<row>
+  <entry morerows="1">A</entry>
+  <entry>B</entry>
+  <entry morerows="1">C</entry>
+  <entry>D</entry>
+</row>
+<row>
+  <entry namest="c4a">E</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/informaltable.002.xml b/testdocs/tests/informaltable.002.xml
new file mode 100644 (file)
index 0000000..f72c5d7
--- /dev/null
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: informaltable.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<!--
++........+........+........+........+
+|   A    |   B    |   C    |   D    |
++........+........+        +        +
+|   E    |   F    |        |        |
++        +........+        +        +
+|        |   G    |        |        |
++        +........+........+........+
+|        |   H    |        |   I    |
++........+........+........+........+
+-->
+
+<informaltable frame="all">
+<tgroup cols="4">
+<colspec colname="c4b" colnum="4"/>
+<tbody>
+<row>
+  <entry>A</entry>
+  <entry>B</entry>
+  <entry morerows="2">C</entry>
+  <entry morerows="2">D</entry>
+</row>
+<row>
+  <entry morerows="2">E</entry>
+  <entry>F</entry>
+</row>
+<row>
+  <entry>G</entry>
+</row>
+<row>
+  <entry>H</entry>
+  <entry namest="c4b">I</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/informaltable.003.xml b/testdocs/tests/informaltable.003.xml
new file mode 100644 (file)
index 0000000..a951948
--- /dev/null
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: informaltable.003</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<!--
++........+........+........+........+
+|   A    |   B    |   C    |   D    |
++........+        +........+        +
+|   E    |        |   F    |        |
++        +        +........+........+
+|        |        |        |   G    |
++........+........+........+........+
+|   H    |        |   I    |   J    |
++........+........+........+........+
+-->
+
+<informaltable frame="all">
+<tgroup cols="4">
+<colspec colname="c3c" colnum="3"/>
+<colspec colname="c4c" colnum="4"/>
+<tbody>
+<row>
+  <entry>A</entry>
+  <entry morerows="2">B</entry>
+  <entry>C</entry>
+  <entry morerows="1">D</entry>
+</row>
+<row>
+  <entry morerows="1">E</entry>
+  <entry>F</entry>
+</row>
+<row>
+  <entry namest="c4c">G</entry>
+</row>
+<row>
+  <entry>H</entry>
+  <entry namest="c3c">I</entry>
+  <entry>J</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/informaltable.004.xml b/testdocs/tests/informaltable.004.xml
new file mode 100644 (file)
index 0000000..0eb26e5
--- /dev/null
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: informaltable.004</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<!--
++........+........+........+........+........+
+|   A    |        |        |        |        |
++        +........+........+........+........+
+|        |   B    |        |        C        |
++        +........+........+........+........+
+|        |        |   D    |   F    |        |
++........+........+        +........+........+
+|        |        |        |        |   E    |
++........+........+........+........+........+
+-->
+
+<informaltable frame="all">
+<tgroup cols="5">
+<colspec colname="c3d" colnum="3"/>
+<colspec colname="c4d" colnum="4"/>
+<colspec colname="c5d" colnum="5"/>
+<tbody>
+<row>
+  <entry morerows="2">A</entry>
+</row>
+<row>
+  <entry>B</entry>
+  <entry namest="c4d" nameend="c5d">C</entry>
+</row>
+<row>
+  <entry namest="c3d" morerows="1">D</entry>
+  <entry>F</entry>
+</row>
+<row>
+  <entry namest="c5d">E</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/informaltable.005.xml b/testdocs/tests/informaltable.005.xml
new file mode 100644 (file)
index 0000000..5495581
--- /dev/null
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: informaltable.005</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<!--
++........+........+........+........+
+|        |   B    |        |   D    |
++   A    +........+   C    +........+
+|        |        |        |   E    |
++........+........+........+........+
+-->
+
+<informaltable frame="all">
+<tgroup cols="4">
+<colspec colname="c4a" colnum="4"/>
+<tbody>
+<row>
+  <entry morerows="1">A</entry>
+  <entry>B</entry>
+  <entry morerows="1">C</entry>
+  <entry>D</entry>
+</row>
+<row>
+  <entry namest="c4a">E</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/informaltable.006.xml b/testdocs/tests/informaltable.006.xml
new file mode 100644 (file)
index 0000000..b659490
--- /dev/null
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: informaltable.006</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<!--
++........+........+........+........+
+|   A    |        |        |        |
++        +........+........+........+
+|        |   B    |        |   C    |
++        +........+........+........+
+|        |        |   D    |   F    |
++........+........+        +........+
+|        |        |        |   E    |
++........+........+........+........+
+-->
+
+<informaltable frame="all">
+<tgroup cols="4">
+<colspec colname="c3d" colnum="3"/>
+<colspec colname="c4d" colnum="4"/>
+<tbody>
+<row>
+  <entry morerows="2">A</entry>
+</row>
+<row>
+  <entry>B</entry>
+  <entry namest="c4d">C</entry>
+</row>
+<row>
+  <entry namest="c3d" morerows="1">D</entry>
+  <entry>F</entry>
+</row>
+<row>
+  <entry namest="c4d">E</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/informaltable.007.xml b/testdocs/tests/informaltable.007.xml
new file mode 100644 (file)
index 0000000..2a735f3
--- /dev/null
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: informaltable.007</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<!--
++........+........+........+........+........+
+|        A        |        |        B        |
++........+........+........+........+........+
+|   X    |                          |        |
++........+            C             +........+
+|   Y    |                          |        |
++........+........+........+........+........+
+|        D        |        |        E        |
++........+........+........+........+........+
+|   F    |   G    |   H    |   I    |   J    |
++........+........+........+........+........+
+-->
+
+<informaltable frame="all">
+<tgroup cols="5">
+<colspec colname="c1c"/>
+<colspec colname="c2c"/>
+<colspec colname="c3c"/>
+<colspec colname="c4c"/>
+<colspec colname="c5c"/>
+<tbody>
+<row>
+  <entry namest="c1c" nameend="c2c">A</entry>
+  <entry namest="c4c" nameend="c5c">B</entry>
+</row>
+<row>
+  <entry>X</entry>
+  <entry namest="c2c" nameend="c4c" morerows="1">C</entry>
+</row>
+<row>
+  <entry>Y</entry>
+</row>
+<row>
+  <entry namest="c1c" nameend="c2c">D</entry>
+  <entry namest="c4c" nameend="c5c">E</entry>
+</row>
+<row>
+  <entry>F</entry>
+  <entry>G</entry>
+  <entry>H</entry>
+  <entry>I</entry>
+  <entry>J</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/informaltable.008.xml b/testdocs/tests/informaltable.008.xml
new file mode 100644 (file)
index 0000000..460eb8a
--- /dev/null
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: informaltable.008</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<!--
++........+........+........+........+........+
+|        A        |        |        B        |
++........+........+........+........+........+
+|   X    |                          |        |
++........+            C             +........+
+|   Y    |                          |        |
++........+........+........+........+........+
+|        D        |        |        E        |
++........+........+........+........+........+
+-->
+
+<informaltable frame="all">
+<tgroup cols="5">
+<colspec colname="c1c"/>
+<colspec colname="c2c"/>
+<colspec colname="c3c"/>
+<colspec colname="c4c"/>
+<colspec colname="c5c"/>
+<tbody>
+<row>
+  <entry namest="c1c" nameend="c2c">A</entry>
+  <entry namest="c4c" nameend="c5c">B</entry>
+</row>
+<row>
+  <entry>X</entry>
+  <entry namest="c2c" nameend="c4c" morerows="1">C</entry>
+</row>
+<row>
+  <entry>Y</entry>
+</row>
+<row>
+  <entry namest="c1c" nameend="c2c">D</entry>
+  <entry namest="c4c" nameend="c5c">E</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/informaltable.009.xml b/testdocs/tests/informaltable.009.xml
new file mode 100644 (file)
index 0000000..9dc89a0
--- /dev/null
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: informaltable.009</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<!--
++........+........+........+........+........+
+|        A        |        |        B        |
++........+........+........+........+........+
+|        |            C             |        |
++........+........+........+........+........+
+|        D        |        |        E        |
++........+........+........+........+........+
+-->
+
+<informaltable frame="all">
+<tgroup cols="5">
+<colspec colname="c1c"/>
+<colspec colname="c2c"/>
+<colspec colname="c3c"/>
+<colspec colname="c4c"/>
+<colspec colname="c5c"/>
+<tbody>
+<row>
+  <entry namest="c1c" nameend="c2c">A</entry>
+  <entry namest="c4c" nameend="c5c">B</entry>
+</row>
+<row>
+  <entry namest="c2c" nameend="c4c">C</entry>
+</row>
+<row>
+  <entry namest="c1c" nameend="c2c">D</entry>
+  <entry namest="c4c" nameend="c5c">E</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/informaltable.010.xml b/testdocs/tests/informaltable.010.xml
new file mode 100644 (file)
index 0000000..65d2703
--- /dev/null
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: informaltable.010</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<!--
++........+........+........+........+
+|   A    |        |        |    F   |
++........+........+........+........+
+|        |   B    |                 |
++........+........+        D        +
+|   C    |        |                 |
++........+........+........+........+
+-->
+
+<informaltable frame="all">
+<tgroup cols="4">
+<colspec colname="c1a" colnum="1"/>
+<colspec colname="c2a" colnum="2"/>
+<colspec colname="c3a" colnum="3"/>
+<colspec colname="c4a" colnum="4"/>
+<tbody>
+<row>
+  <entry>A</entry>
+  <entry colname="c4a">F</entry>
+</row>
+<row>
+  <entry colname="c2a">B</entry>
+  <entry namest="c3a" nameend="c4a" morerows="1">D</entry>
+</row>
+<row>
+  <entry>C</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/informaltable.011.xml b/testdocs/tests/informaltable.011.xml
new file mode 100644 (file)
index 0000000..7da625e
--- /dev/null
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: informaltable.011</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<!--
++........+........+........+........+
+|        |        |        |    F   |
++   A    +........+........+........+
+|        |        B                 |
++........+                          +
+|   C    |                          |
++........+........+........+........+
+-->
+
+<informaltable frame="all">
+<tgroup cols="4">
+<colspec colname="c1a" colnum="1"/>
+<colspec colname="c2a" colnum="2"/>
+<colspec colname="c3a" colnum="3"/>
+<colspec colname="c4a" colnum="4"/>
+<tbody>
+<row>
+  <entry morerows="1">A</entry>
+  <entry colname="c4a">F</entry>
+</row>
+<row>
+  <entry namest="c2a" nameend="c4a" morerows="1">B</entry>
+</row>
+<row>
+  <entry>C</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/informaltable.012.xml b/testdocs/tests/informaltable.012.xml
new file mode 100644 (file)
index 0000000..2d0bf2c
--- /dev/null
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: informaltable.012</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<!--
++........+........+........+
+|   A    |        |        |
++........+........+........+
+|        |        B        |
++........+........+........+
+-->
+
+<informaltable frame="all">
+<tgroup cols="3">
+<colspec colname="c2a" colnum="2"/>
+<colspec colname="c3a" colnum="3"/>
+<tbody>
+<row>
+  <entry>A</entry>
+</row>
+<row>
+  <entry namest="c2a" nameend="c3a">B</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/informaltable.013.xml b/testdocs/tests/informaltable.013.xml
new file mode 100644 (file)
index 0000000..99cfebc
--- /dev/null
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: informaltable.013</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<!--
++........+........+........+........+........+
+|   A    |        |        |        |        |
++........+........+........+........+........+
+-->
+
+<informaltable frame="all">
+<tgroup cols="5">
+<tbody>
+<row>
+  <entry>A</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/informaltable.014.xml b/testdocs/tests/informaltable.014.xml
new file mode 100644 (file)
index 0000000..94d7402
--- /dev/null
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: informaltable.014</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<!--
++........+........+........+........+........+
+|   A    |        |        |        |        |
++        +........+........+........+........+
+|        |   B    |        |        C        |
++        +........+........+........+........+
+|        |        |   D    |   G    |        |
++........+........+        +........+........+
+|        |        |        |        |   E    |
++........+........+........+........+........+
+|        |        |            F             |
++........+........+........+........+........+
+-->
+
+<informaltable frame="all">
+<tgroup cols="5">
+<colspec colname="c3d" colnum="3"/>
+<colspec colname="c4d" colnum="4"/>
+<colspec colname="c5d" colnum="5"/>
+<tbody>
+<row>
+  <entry morerows="2">A</entry>
+</row>
+<row>
+  <entry>B</entry>
+  <entry namest="c4d" nameend="c5d">C</entry>
+</row>
+<row>
+  <entry namest="c3d" morerows="1">D</entry>
+  <entry>G</entry>
+</row>
+<row>
+  <entry namest="c5d">E</entry>
+</row>
+<row>
+  <entry namest="c3d" nameend="c5d">F</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/inline.001.xml b/testdocs/tests/inline.001.xml
new file mode 100644 (file)
index 0000000..9bcd2b6
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: inline.001.xml</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<para>This article tests inline objects.</para>
+
+<section><title>Trademark</title>
+
+<para><trademark>This is trademarked</trademark>.
+<trademark class="copyright">This is copyrighted</trademark>.
+<trademark class="registered">This is a registered trademark</trademark>.
+<trademark class="service">This is is a service mark</trademark>.</para>
+
+<para>This is a <phrase role="red">red phrase</phrase>.
+This <emphasis role="strong">emphasis is strong</emphasis>.
+</para>
+
+</article>
diff --git a/testdocs/tests/itemizedlist.001.xml b/testdocs/tests/itemizedlist.001.xml
new file mode 100644 (file)
index 0000000..04b20de
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: itemizedlist.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<itemizedlist><title>YE OLDE ITEMIZEDLIST</title>
+<listitem><para>Item 1</para></listitem>
+<listitem><para>Item 1</para>
+<variablelist termlength="3pc">
+<varlistentry>
+<term>A</term><listitem><para>xxxxx</para></listitem></varlistentry>
+<varlistentry>
+<term>B</term><listitem><para>xxxxx</para></listitem></varlistentry>
+</variablelist>
+</listitem>
+<listitem><para>Item 4</para>
+</listitem>
+</itemizedlist>
+
+</article>
diff --git a/testdocs/tests/itemizedlist.002.xml b/testdocs/tests/itemizedlist.002.xml
new file mode 100644 (file)
index 0000000..e884a84
--- /dev/null
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: itemizedlist.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<itemizedlist>
+  <listitem><para>Level 1</para>
+    <itemizedlist>
+    <listitem><para>Level 2</para>
+      <itemizedlist>
+      <listitem id="someOtherILI"><para>Level 3</para>
+        <itemizedlist>
+        <listitem><para>Level 4</para>
+          <itemizedlist mark="disc">
+          <listitem><para>Level 5</para>
+            <itemizedlist mark="disc">
+            <listitem override="round"><para>Level 6, override=round</para>
+            </listitem>
+            </itemizedlist>
+          </listitem>
+          </itemizedlist>
+        </listitem>
+        </itemizedlist>
+    </listitem>
+    </itemizedlist>
+  </listitem>
+  </itemizedlist>
+</listitem>
+</itemizedlist>
+
+</article>
diff --git a/testdocs/tests/link.001.xml b/testdocs/tests/link.001.xml
new file mode 100644 (file)
index 0000000..ea91fb6
--- /dev/null
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: link.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<section id="section"><title>Section Title</title>
+
+<para>A <link linkend="section">self-referential link</link>.</para>
+
+<para>A link without content: <link linkend="section2"/>.</para>
+
+<para>A link without content, but with an xreflabel:
+<link linkend="section2" xreflabel="stb"/>.</para>
+
+<para>A link with content and an xreflabel:
+<link linkend="section2" xreflabel="stb">here</link>.</para>
+
+</section>
+
+<section id="section2">
+<title>A Very Long Section Title That I Don't Want To Use For My XRef</title>
+<titleabbrev id="stb">Long Section Title</titleabbrev>
+
+<para>Some text with a <link linkend="section">link back</link> to the
+first section.</para>
+
+</section>
+
+</article>
diff --git a/testdocs/tests/literallayout.001.xml b/testdocs/tests/literallayout.001.xml
new file mode 100644 (file)
index 0000000..42a748a
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: literallayout.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<literallayout>LiteralLayout: This is a test
+  Only a test.
+Had this been a real emegency,
+  We would have fled in terror
+And you would not have been informed.</literallayout>
+
+</article>
diff --git a/testdocs/tests/literallayout.002.xml b/testdocs/tests/literallayout.002.xml
new file mode 100644 (file)
index 0000000..647289c
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: literallayout.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<literallayout>LiteralLayout: This is a test
+    This is a test with <emphasis>    embedded
+  markup</emphasis>; but still
+  Only a test.
+Had this been a real emegency,
+  We would have fled in terror
+And you would not have been informed.</literallayout>
+
+</article>
diff --git a/testdocs/tests/literallayout.003.xml b/testdocs/tests/literallayout.003.xml
new file mode 100644 (file)
index 0000000..170a267
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: literallayout.003</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<literallayout class="monospaced">LiteralLayout(monospaced): This is a test
+  Only a test.
+Had this been a real emegency,
+  We would have fled in terror
+And you would not have been informed.</literallayout>
+
+</article>
diff --git a/testdocs/tests/mediaobject.001.xml b/testdocs/tests/mediaobject.001.xml
new file mode 100644 (file)
index 0000000..524249e
--- /dev/null
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: mediaobject.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+  <mediaobject>
+    <imageobject>
+      <imagedata
+        align="right"
+        width="50%"
+        fileref="graphics/duck-small.gif"
+        srccredit="O'Reilly &amp; Associates/Dover Archives"/>
+    </imageobject>
+    <imageobject>
+      <imagedata
+        align="right"
+        width="50%"
+        fileref="graphics/duck-small.png"
+        format="PNG"
+        srccredit="O'Reilly &amp; Associates/Dover Archives"/>
+    </imageobject>
+    <textobject><phrase>The DocBook: TDG Duck</phrase></textobject>
+    <textobject>
+<para>The bird on the cover of <citetitle>DocBook: The Definitive
+Guide</citetitle> is a wood duck.  Often considered one of the most
+beautiful ducks in North America, the mail wood duck has a metallic
+purple and green head with white streaks extending from its bill
+around the eyes and down to its blue and green, gold-flecked
+wings. It has a white neck, chestnut-colored chest, a white or red
+bill, and yellow-orange legs and feet. Females have more brown, gray,
+and subdueed hues.
+</para>
+
+<para>Edie Freedman designed the cover of this book, using a
+19th-century engraving from the Dover Pictorial Archive. The
+cover layout was produced by Kathleen Wilson using QuarkXPress
+3.32 and Adobe's ITC Garamond font. The inside layout was
+designed by Alicia Cech, based on a series design by Nancy
+Priest. The text was formatted from SGML into FrameMaker 5.5
+with Jade, using a DSSSL conversion stylesheet written by
+Chris Maden. The interior fonts are ITC Garamond Light,
+Garamond Book, and ConstantWillison.
+</para>
+    </textobject>
+    <caption><para>The Duck</para></caption>
+  </mediaobject>
+
+</article>
diff --git a/testdocs/tests/note.001.xml b/testdocs/tests/note.001.xml
new file mode 100644 (file)
index 0000000..c5f50ea
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: note.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<note> 
+<title>Who can do this</title> 
+<para>All operators</para> 
+</note> 
+
+</article>
diff --git a/testdocs/tests/olink.001.xml b/testdocs/tests/olink.001.xml
new file mode 100644 (file)
index 0000000..e5faefe
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
+<!ENTITY olink.001.xml SYSTEM "olink.001.xml" NDATA SGML>
+]>
+<article>
+<articleinfo>
+<title>Unit Test: olink.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+<modespec id="olink">file:///sourceforge/projects/docbook/testdocs/tests/olink.001.html</modespec>
+</articleinfo>
+
+<para>This is an <olink targetdocent="olink.001.xml" linkmode="olink">OLink</olink>
+with a linkmode. (It is self-referential).</para>
+
+<para>This is an <olink targetdocent="olink.001.xml">OLink</olink>
+without a linkmode. (It is also self-referential).</para>
+
+</article>
diff --git a/testdocs/tests/orderedlist.001.xml b/testdocs/tests/orderedlist.001.xml
new file mode 100644 (file)
index 0000000..5659b7a
--- /dev/null
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: orderedlist.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<orderedlist>
+  <listitem><para>Level 1</para>
+    <orderedlist>
+    <listitem><para>Level 2</para>
+      <orderedlist>
+      <listitem id="someOLI"><para>Level 3</para>
+        <orderedlist>
+        <listitem><para>Level 4</para>
+          <orderedlist>
+          <listitem><para>Level 5</para>
+            <orderedlist>
+            <listitem override="13"><para>Level 6, override=13</para>
+            </listitem>
+            </orderedlist>
+          </listitem>
+          </orderedlist>
+        </listitem>
+        </orderedlist>
+    </listitem>
+    </orderedlist>
+  </listitem>
+  </orderedlist>
+</listitem>
+</orderedlist>
+
+</article>
diff --git a/testdocs/tests/orderedlist.002.xml b/testdocs/tests/orderedlist.002.xml
new file mode 100644 (file)
index 0000000..5b56081
--- /dev/null
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: orderedlist.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<orderedlist numeration="loweralpha">
+  <listitem><para>Level 1, numeration="loweralpha"</para>
+    <orderedlist>
+    <listitem><para>Level 2</para>
+      <orderedlist>
+      <listitem><para>Level 3</para>
+        <orderedlist>
+        <listitem><para>Level 4</para>
+          <orderedlist>
+          <listitem><para>Level 5</para>
+            <orderedlist>
+            <listitem><para>Level 6</para>
+            </listitem>
+            </orderedlist>
+          </listitem>
+          </orderedlist>
+        </listitem>
+        </orderedlist>
+    </listitem>
+    </orderedlist>
+  </listitem>
+  </orderedlist>
+</listitem>
+</orderedlist>
+
+</article>
diff --git a/testdocs/tests/procedure.001.xml b/testdocs/tests/procedure.001.xml
new file mode 100644 (file)
index 0000000..d0c9daa
--- /dev/null
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: procedure.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<procedure id="proc"><title>Procedure Title</title>
+<step><para>Press MENUS.</para>
+</step>
+<step id="step-x"><para>Press MENUS.</para>
+</step>
+<step><para>Press MENUS.</para>
+</step>
+<step><para>Press MENUS.</para>
+</step>
+<step><para>Select SETUP.</para>
+<substeps>
+<step><para>Should be an <quote>a</quote></para>
+</step>
+<step id="step-y"><para>Should be a <quote>b</quote></para>
+</step>
+<step><para>Should be a <quote>c</quote></para>
+</step>
+<step><para>Should be a <quote>d</quote></para>
+</step>
+<step><para>should be an <quote>e</quote></para>
+<substeps>
+<step><para>should be an <quote>i</quote></para>
+</step>
+<step id="step-z"><para>should be an <quote>ii</quote></para>
+</step>
+</substeps>
+</step>
+</substeps>
+</step>
+</procedure>
+
+</article>
diff --git a/testdocs/tests/procedure.002.xml b/testdocs/tests/procedure.002.xml
new file mode 100644 (file)
index 0000000..41f6c8c
--- /dev/null
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: procedure.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<procedure>
+<step><para>Press MENUS.</para>
+</step>
+<step><para>Press MENUS.</para>
+</step>
+<step><para>Press MENUS.</para>
+</step>
+<step><para>Press MENUS.</para>
+</step>
+<step><para>Select SETUP.</para>
+<substeps>
+<step><para>Should be an &ldquo;a&rdquo;</para>
+</step>
+<step><para>Should be a &ldquo;b&rdquo;</para>
+</step>
+<step><para>Should be a &ldquo;c&rdquo;</para>
+</step>
+<step><para>Should be a &ldquo;d&rdquo;</para>
+</step>
+<step><para>should be an &ldquo;e&rdquo;</para>
+<substeps>
+<step><para>should be an &ldquo;i&rdquo;</para>
+</step>
+<step><para>should be an &ldquo;ii&rdquo;</para>
+</step>
+</substeps>
+</step>
+</substeps>
+</step>
+</procedure>
+
+</article>
diff --git a/testdocs/tests/procedure.003.xml b/testdocs/tests/procedure.003.xml
new file mode 100644 (file)
index 0000000..728ca59
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: procedure.003</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<procedure>
+<para>Do the following:</para>
+<step><para>One step?</para>
+</step>
+</procedure>
+
+</article>
diff --git a/testdocs/tests/productionset.001.xml b/testdocs/tests/productionset.001.xml
new file mode 100644 (file)
index 0000000..8830a8d
--- /dev/null
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook EBNF Module V1.0//EN"
+                  "http://www.oasis-open.org/docbook/xml/ebnf/1.0/dbebnf.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: productionset.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<productionset><title>Arithemetic Expressions</title>
+<production id="ebnf.expression">
+  <lhs>Expression</lhs>
+  <rhs><nonterminal def="#ebnf.arith">ArithExpression</nonterminal> |
+       <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
+  <lineannotation>Does this grammar actually get precedence right?
+  </lineannotation>
+  </rhs>
+</production>
+<production id="ebnf.arith">
+  <lhs>ArithExpression</lhs>
+  <rhs><nonterminal def="#ebnf.expression">Expression</nonterminal>
+       '+'
+       <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
+  </rhs>
+<!--
+  <rhs><nonterminal def="#ebnf.expression">Expression</nonterminal>
+       '-'
+       <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
+  </rhs>
+-->
+</production>
+<production id="ebnf.mult">
+  <lhs>MultExpression</lhs>
+  <rhs><nonterminal def="#ebnf.mult">MultExpression</nonterminal>
+       '*'
+       <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
+  </rhs>
+<!--
+  <rhs>
+       <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
+       '/'
+       <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
+  </rhs>
+-->
+  <constraint linkend="div0"/>
+<!--
+  <rhs>
+       <nonterminal def="#ebnf.number">Number</nonterminal>
+  </rhs>
+-->
+</production>
+<production id="ebnf.number">
+  <lhs>Number</lhs>
+  <rhs>[0-9]+</rhs>
+</production>
+</productionset>
+
+<constraintdef id="div0" role="Err">
+<title>Division by Zero</title>
+<para>Division by zero is an error.</para>
+</constraintdef>
+
+</article>
diff --git a/testdocs/tests/productionset.002.xml b/testdocs/tests/productionset.002.xml
new file mode 100644 (file)
index 0000000..b823641
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook EBNF Module V1.0//EN"
+                  "http://www.oasis-open.org/docbook/xml/ebnf/1.0/dbebnf.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: productionset.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<productionset><title>Character Range</title>
+<production id="NT-Char">
+<lhs>Char</lhs>
+<rhs>#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD]
+<!-- The above line break in the source file has nothing to do with the
+line breaks in the output. -->
+| [#x10000-#x10FFFF]
+<lineannotation>any Unicode character, excluding the surrogate
+blocks, FFFE, and FFFF.
+</lineannotation>
+</rhs>
+</production>
+</productionset>
+
+</article>
diff --git a/testdocs/tests/productionset.003.xml b/testdocs/tests/productionset.003.xml
new file mode 100644 (file)
index 0000000..68b0206
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook EBNF Module V1.0//EN"
+                  "http://www.oasis-open.org/docbook/xml/ebnf/1.0/dbebnf.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: productionset.003</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<productionset><title>Standalone Document Declaration</title>
+<production id="NT-SDDecl">
+<lhs>SDDecl</lhs>
+<rhs><nonterminal def="#NT-S">S</nonterminal> 'standalone' <nonterminal def="#NT-Eq">Eq</nonterminal>
+<!-- The above line break in the source file has nothing to do with the
+line breaks in the output. -->
+(("'" ('yes' | 'no') "'") | ('"' ('yes' | 'no') '"'))
+</rhs>
+<constraint linkend="check-rmd"/>
+</production>
+</productionset>
+
+<constraintdef id="check-rmd" role="VC">
+<title>Standalone Document Declaration</title>
+<para>Some description...</para>
+</constraintdef>
+
+</article>
diff --git a/testdocs/tests/productionset.004.xml b/testdocs/tests/productionset.004.xml
new file mode 100644 (file)
index 0000000..8daed2a
--- /dev/null
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook EBNF Module V1.0//EN"
+                  "http://www.oasis-open.org/docbook/xml/ebnf/1.0/dbebnf.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: productionset.004</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<productionset>
+<production id="NT-SDDecl">
+<lhs>SDDecl</lhs>
+<rhs><nonterminal def="#NT-S">S</nonterminal> 'standalone' <nonterminal def="#NT-Eq">Eq</nonterminal>
+<!-- The above line break in the source file has nothing to do with the
+line breaks in the output. -->
+(("'" ('yes' | 'no') "'") | ('"' ('yes' | 'no') '"'))
+</rhs>
+<constraint linkend="check-rmd"/>
+</production>
+<production id="NT-element">
+<lhs>element</lhs>
+<rhs>
+<nonterminal def="#NT-EmptyElemTag">EmptyElemTag</nonterminal>
+<sbr/><!-- There will be a line break in the output because of the sbr. -->
+| <nonterminal def="#NT-STag">STag</nonterminal> <nonterminal def="#NT-content">content</nonterminal>
+<!-- The above line break has nothing to do with the output. -->
+<nonterminal def="#NT-SDDecl"/>
+</rhs>
+<constraint linkend="GIMatch"/>
+<constraint linkend="elementvalid"/>
+</production>
+<productionrecap linkend="NT-SDDecl"/>
+</productionset>
+
+<constraintdef id="GIMatch" role="WFC">
+<title>Element Type Match</title>
+<para>Some description...</para>
+</constraintdef>
+
+<constraintdef id="elementvalid" role="VC">
+<title>Element Valid</title>
+<para>Some description...</para>
+</constraintdef>
+
+<constraintdef id="check-rmd" role="VC">
+<title>Standalone Document Declaration</title>
+<para>Some description...</para>
+</constraintdef>
+
+</article>
diff --git a/testdocs/tests/programlisting.001.xml b/testdocs/tests/programlisting.001.xml
new file mode 100644 (file)
index 0000000..0834df3
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: programlisting.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<programlisting linenumbering="numbered">ProgramListing: This is a test
+  Only a test.
+Had this been a real emegency,
+  We would have fled in terror
+And you would not have been informed.</programlisting>
+
+</article>
diff --git a/testdocs/tests/programlisting.002.xml b/testdocs/tests/programlisting.002.xml
new file mode 100644 (file)
index 0000000..98c705b
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: programlisting.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<programlisting><inlinemediaobject>
+<imageobject>
+<imagedata format="linespecific" fileref="sample.txt"/>
+</imageobject>
+</inlinemediaobject></programlisting>
+
+</article>
diff --git a/testdocs/tests/programlisting.003.xml b/testdocs/tests/programlisting.003.xml
new file mode 100644 (file)
index 0000000..3718202
--- /dev/null
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: programlisting.003</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<programlisting linenumbering="numbered">@rem = '--*-Perl-*--
+@echo off
+perl.exe %_batchname %$
+goto endofperl
+@rem ';
+
+# Compress mail...
+
+require 'n:/home/nwalsh/lib/cygnus.pl';
+require 'timelocal.pl';
+use Cwd;
+
+select (STDERR); $| = 1;
+select (STDOUT); $| = 1;
+
+@DIRS = ("/home/nwalsh/Mail");
+while (@DIRS) {
+    $dir = shift @DIRS;
+    opendir (DIR, $dir);
+    while ($fname = readdir(DIR)) {
+        $file = "$dir/$fname";
+        next if ! -d $file;
+        next if $fname =~ /^\.\.?$/;
+
+        print "$file\n";
+        push (@DIRS, $file);
+        &amp;compress ($file);
+    }
+}
+
+exit;</programlisting>
+
+</article>
diff --git a/testdocs/tests/programlistingco.001.xml b/testdocs/tests/programlistingco.001.xml
new file mode 100644 (file)
index 0000000..9782faa
--- /dev/null
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: programlistingco.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<programlistingco>
+<areaspec>
+<area coords="1" id="prologue"/>
+<area coords="4" id="skipeof"/>
+<areaset coords="" id="xreq">
+<area coords="9" id="require1"/>
+<area coords="10" id="require2"/>
+</areaset>
+<area coords="11 12" id="use"/>
+<area coords="27" id="funccall"/>
+</areaspec>
+<programlisting>@rem = '--*-Perl-*--
+@echo off
+perl.exe %_batchname %$
+goto endofperl
+@rem ';
+
+# Compress mail...
+
+require 'n:/home/nwalsh/lib/cygnus.pl';
+require 'timelocal.pl';
+use Cwd;
+
+select (STDERR); $| = 1;
+select (STDOUT); $| = 1;
+
+@DIRS = ("/home/nwalsh/Mail");
+while (@DIRS) {
+    $dir = shift @DIRS;
+    opendir (DIR, $dir);
+    while ($fname = readdir(DIR)) {
+        $file = "$dir/$fname";
+        next if ! -d $file;
+        next if $fname =~ /^\.\.?$/;
+
+        print "$file\n";
+        push (@DIRS, $file);
+        &amp;compress ($file);
+    }
+}
+
+exit;</programlisting>
+<calloutlist>
+<callout arearefs="prologue">
+<para>The prologue handles embedding a Perl script in a DOS batch file.</para>
+</callout>
+<callout arearefs="skipeof">
+<para>The <literal>goto</literal> statement, interpreted by the DOS batch
+file interpreter, skips over the body of the Perl script.</para>
+</callout>
+<callout arearefs="require1">
+<para>The <literal>require</literal> statement sources in external program
+fragments.</para>
+</callout>
+<callout arearefs="use">
+<para>The <literal>use</literal> statement is similar, but has additional
+utility.  It is a Perl5 function.  (Note that this callout area specifies
+both a line and a column.)</para>
+</callout>
+<callout arearefs="funccall">
+<para>This is a user subroutine call.</para>
+</callout>
+</calloutlist>
+</programlistingco>
+
+</article>
diff --git a/testdocs/tests/programlistingco.002.xml b/testdocs/tests/programlistingco.002.xml
new file mode 100644 (file)
index 0000000..8d21e63
--- /dev/null
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: programlistingco.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<programlistingco>
+<areaspec>
+<area coords="1" id="prologue2"/>
+<area coords="4" id="skipeof2"/>
+<areaset coords="" id="xreq2">
+<area coords="9" id="require12"/>
+<area coords="10" id="require22"/>
+</areaset>
+<area coords="11 12" id="use2"/>
+<area coords="27" id="funccall2"/>
+</areaspec>
+<programlisting linenumbering="numbered"
+><?dbhtml linenumbering.everyNth="2" linenumbering.separator=" >"
+?><?dbfo linenumbering.everyNth="2" linenumbering.separator=" >"
+?><inlinemediaobject>
+<imageobject>
+<imagedata format="linespecific" fileref="sample.txt"/>
+</imageobject>
+</inlinemediaobject></programlisting>
+</programlistingco>
+
+</article>
diff --git a/testdocs/tests/qandaset.001.xml b/testdocs/tests/qandaset.001.xml
new file mode 100644 (file)
index 0000000..22e03d7
--- /dev/null
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: qandaset.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+  <qandaset defaultlabel='number'>
+    <?dbhtml table-summary="summary"?>
+    <qandaentry>
+      <question><para>Question one.</para></question>
+      <answer>
+       <para>Answer one.
+See <xref linkend="faq-Two"/></para>
+      </answer>
+    </qandaentry>
+
+    <qandaentry>
+      <question id="faq-Two"><para>Question two.</para></question>
+      <answer>
+       <para>Answer two.</para>
+      </answer>
+    </qandaentry>
+
+    <qandaentry>
+      <question id="faq-Twoc"><para>Question two.</para></question>
+      <answer>
+       <orderedlist>
+         <listitem><para>testing a list</para></listitem>
+         <listitem><para>testing a list</para></listitem>
+         <listitem><para>testing a list</para></listitem>
+       </orderedlist>
+      </answer>
+    </qandaentry>
+
+  </qandaset>
+
+</article>
diff --git a/testdocs/tests/qandaset.002.xml b/testdocs/tests/qandaset.002.xml
new file mode 100644 (file)
index 0000000..10ded1b
--- /dev/null
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: qandaset.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+       <qandaset>
+    <?dbhtml toc="0"?>
+         <qandaentry>
+           <question>
+             <para>Blah blah blah.</para>
+           </question>
+         <answer>
+           <example>
+             <title><filename
+                 moreinfo="none">file.name</filename></title>
+             <programlisting format="linespecific">// Hello, World</programlisting>
+           </example>
+           <example>
+             <title><filename
+                 moreinfo="none">file2.name</filename></title>
+             <programlisting format="linespecific">// Goodbye, World</programlisting>
+           </example>
+         </answer>
+         </qandaentry>
+       </qandaset>
+
+
+</article>
diff --git a/testdocs/tests/qandaset.003.xml b/testdocs/tests/qandaset.003.xml
new file mode 100644 (file)
index 0000000..8d0bb16
--- /dev/null
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: qandaset.003</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+       <qandaset>
+    <title>QandA Title</title>
+<para>Some introductory preamble. Some introductory preamble.
+Some introductory preamble. Some introductory preamble.
+Some introductory preamble. Some introductory preamble.
+Some introductory preamble. Some introductory preamble.</para>
+<para>Some introductory preamble. Some introductory preamble.
+Some introductory preamble. Some introductory preamble.
+Some introductory preamble. Some introductory preamble.
+Some introductory preamble. Some introductory preamble.</para>
+    <qandadiv><title>Division 1</title>
+         <qandaentry>
+           <question>
+             <para>Blah blah blah.</para>
+           </question>
+         <answer>
+           <example>
+             <title><filename
+                 moreinfo="none">file.name</filename></title>
+             <programlisting format="linespecific">// Hello, World</programlisting>
+           </example>
+           <example>
+             <title><filename
+                 moreinfo="none">file2.name</filename></title>
+             <programlisting format="linespecific">// Goodbye, World</programlisting>
+           </example>
+         </answer>
+         </qandaentry>
+    </qandadiv>
+    <qandadiv><title>Division 2</title>
+<para>Some introductory preamble. Some introductory preamble.
+Some introductory preamble. Some introductory preamble.
+Some introductory preamble. Some introductory preamble.
+Some introductory preamble. Some introductory preamble.</para>
+<para>Some introductory preamble. Some introductory preamble.
+Some introductory preamble. Some introductory preamble.
+Some introductory preamble. Some introductory preamble.
+Some introductory preamble. Some introductory preamble.</para>
+    <qandadiv><title>Division 2.1</title>
+         <qandaentry>
+           <question>
+             <para>Blah blah blah.</para>
+           </question>
+         <answer>
+           <example>
+             <title><filename
+                 moreinfo="none">file.name</filename></title>
+             <programlisting format="linespecific">// Hello, World</programlisting>
+           </example>
+           <example>
+             <title><filename
+                 moreinfo="none">file2.name</filename></title>
+             <programlisting format="linespecific">// Goodbye, World</programlisting>
+           </example>
+         </answer>
+         </qandaentry>
+    </qandadiv>
+    <qandadiv><title>Division 2.2</title>
+         <qandaentry>
+           <question>
+             <para>Blah blah blah.</para>
+           </question>
+         <answer>
+           <example>
+             <title><filename
+                 moreinfo="none">file.name</filename></title>
+             <programlisting format="linespecific">// Hello, World</programlisting>
+           </example>
+           <example>
+             <title><filename
+                 moreinfo="none">file2.name</filename></title>
+             <programlisting format="linespecific">// Goodbye, World</programlisting>
+           </example>
+         </answer>
+         </qandaentry>
+    </qandadiv>
+    </qandadiv>
+       </qandaset>
+
+</article>
diff --git a/testdocs/tests/refentry.001.xml b/testdocs/tests/refentry.001.xml
new file mode 100644 (file)
index 0000000..e994755
--- /dev/null
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: refentry.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<refentry id="minimal">
+<refnamediv>
+<refname>Minimal</refname>
+<refpurpose>Test of a minimal RefEntry</refpurpose>
+</refnamediv>
+
+<refsect1>
+<title>Description</title>
+<para>This is a minimal RefEntry.</para>
+</refsect1>
+</refentry>
+
+</article>
diff --git a/testdocs/tests/refentry.002.xml b/testdocs/tests/refentry.002.xml
new file mode 100644 (file)
index 0000000..5fe9fe0
--- /dev/null
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: refentry.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<refentry id="lessminimal">
+<refmeta>
+<refentrytitle>Also Minimal Title</refentrytitle>
+<manvolnum>3</manvolnum>
+</refmeta>
+<refnamediv>
+<refname>Also Minimal</refname>
+<refpurpose>Another test of a minimal RefEntry</refpurpose>
+</refnamediv>
+
+<refsect1>
+<title>Description</title>
+<para>This is a minimal RefEntry.</para>
+</refsect1>
+</refentry>
+
+</article>
diff --git a/testdocs/tests/refentry.003.xml b/testdocs/tests/refentry.003.xml
new file mode 100644 (file)
index 0000000..676b656
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: refentry.003</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<refentry id="evenlessminimal">
+<refmeta>
+<refentrytitle>Fred</refentrytitle>
+<manvolnum>3</manvolnum>
+</refmeta>
+<refnamediv>
+<refname>Less Minimal</refname>
+<refname>Even Less Minimal</refname>
+<refpurpose>Test of a minimal RefEntry</refpurpose>
+</refnamediv>
+
+<refsect1>
+<title>Description</title>
+<para>This is a minimal RefEntry.</para>
+</refsect1>
+</refentry>
+
+</article>
diff --git a/testdocs/tests/reference.001.xml b/testdocs/tests/reference.001.xml
new file mode 100644 (file)
index 0000000..5092fd6
--- /dev/null
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                    "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<reference>
+<referenceinfo>
+<title>Unit Test: reference.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</referenceinfo>
+
+<refentry id="minimal">
+<refnamediv>
+<refname>Minimal</refname>
+<refpurpose>Test of a minimal RefEntry</refpurpose>
+</refnamediv>
+
+<refsect1>
+<title>Description</title>
+<para>This is a minimal RefEntry.</para>
+</refsect1>
+</refentry>
+
+<refentry id="lessminimal">
+<refmeta>
+<refentrytitle>Also Minimal Title</refentrytitle>
+<manvolnum>3</manvolnum>
+</refmeta>
+<refnamediv>
+<refname>Also Minimal</refname>
+<refpurpose>Another test of a minimal RefEntry</refpurpose>
+</refnamediv>
+
+<refsect1>
+<title>Description</title>
+<para>This is a minimal RefEntry.</para>
+</refsect1>
+</refentry>
+
+<refentry id="evenlessminimal">
+<refmeta>
+<refentrytitle>Fred</refentrytitle>
+<manvolnum>3</manvolnum>
+</refmeta>
+<refnamediv>
+<refname>Less Minimal</refname>
+<refname>Even Less Minimal</refname>
+<refpurpose>Test of a minimal RefEntry</refpurpose>
+</refnamediv>
+
+<refsect1>
+<title>Description</title>
+<para>This is a minimal RefEntry.</para>
+</refsect1>
+</refentry>
+
+</reference>
+
diff --git a/testdocs/tests/screen.001.xml b/testdocs/tests/screen.001.xml
new file mode 100644 (file)
index 0000000..a41b1af
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: screen.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<screen>
+(let <co id="dl1"/>loopvar <co id="dl2"/>((count 1))
+  <co id="dl3"/>(if (> count 10)
+    <co id="dl4"/>#t
+    (<co id="dl5"/>loopvar <co id="dl6"/>(+ count 1))))</screen>
+
+</article>
diff --git a/testdocs/tests/sect1.001.xml b/testdocs/tests/sect1.001.xml
new file mode 100644 (file)
index 0000000..7de780a
--- /dev/null
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: sect1.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+    <sect1 id="c1s1"><title>Section 1</title>
+      <para>blah.</para>
+      <sect2 id="c1s1s1"><title>Section 1.1</title>
+       <para>blah.</para>
+       <sect3 id="c1s1s1s1"><title>Section 1.1.1</title>
+         <para>blah.</para>
+         <sect4 id="c1s1s1s1s1"><title>Section 1.1.1.1</title>
+           <para>blah.</para>
+           <sect5 id="c1s1s1s1s1s1"><title>Section 1.1.1.1.1</title>
+             <para>blah.</para>
+           </sect5>
+           <sect5 id="c1s1s1s1s1s2"><title>Section 1.1.1.1.2</title>
+             <para>blah.</para>
+           </sect5>
+           <sect5 id="c1s1s1s1s1s3"><title>Section 1.1.1.1.3</title>
+             <para>blah.</para>
+           </sect5>
+         </sect4>
+         <sect4 id="c1s1s1s1s2"><title>Section 1.1.1.2</title>
+           <para>blah.</para>
+         </sect4>
+         <sect4 id="c1s1s1s1s3"><title>Section 1.1.1.3</title>
+           <para>blah.</para>
+         </sect4>
+       </sect3>
+       <sect3 id="c1s1s1s2"><title>Section 1.1.2</title>
+         <para>blah.</para>
+       </sect3>
+       <sect3 id="c1s1s1s3"><title>Section 1.1.3</title>
+         <para>blah.</para>
+       </sect3>
+      </sect2>
+      <sect2 id="c1s1s2"><title>Section 1.2</title>
+       <para>blah.</para>
+      </sect2>
+      <sect2 id="c1s1s3"><title>Section 1.3</title>
+       <para>blah.</para>
+      </sect2>
+    </sect1>
+
+</article>
diff --git a/testdocs/tests/sect1.002.xml b/testdocs/tests/sect1.002.xml
new file mode 100644 (file)
index 0000000..f0978af
--- /dev/null
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: sect1.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+    <sect1 id="c1s2"><title>Section 2</title>
+      <para>blah.</para>
+      <sect2 id="c1s2s1"><title>Section 2.1</title>
+       <para>blah.</para>
+       <sect3 id="c1s2s1s1"><title>Section 2.1.1</title>
+         <para>blah.</para>
+         <sect4 id="c1s2s1s1s1"><title>Section 2.1.1.1</title>
+           <para>blah.</para>
+           <sect5 id="c1s2s1s1s1s1s"><title>Section 2.1.1.1.1</title>
+             <para>blah.</para>
+           </sect5>
+           <sect5 id="c1s2s1s1s1s2"><title>Section 2.1.1.1.2</title>
+             <para>blah.</para>
+           </sect5>
+           <sect5 id="c1s2s1s1s1s3"><title>Section 2.1.1.1.3</title>
+             <para>blah.</para>
+           </sect5>
+         </sect4>
+         <sect4 id="c1s2s1s1s2"><title>Section 2.1.1.2</title>
+           <para>blah.</para>
+         </sect4>
+         <sect4 id="c1s2s1s1s3"><title>Section 2.1.1.3</title>
+           <para>blah.</para>
+         </sect4>
+       </sect3>
+       <sect3 id="c1s2s1s2"><title>Section 2.1.2</title>
+         <para>blah.</para>
+       </sect3>
+       <sect3 id="c1s2s1s3"><title>Section 2.1.3</title>
+         <para>blah.</para>
+       </sect3>
+      </sect2>
+      <sect2 id="c1s2s2"><title>Section 2.2</title>
+       <para>blah.</para>
+      </sect2>
+      <sect2 id="c1s2s3"><title>Section 2.3</title>
+       <para>blah.</para>
+      </sect2>
+    </sect1>
+    <sect1 id="c1s3"><title>Section 3</title>
+      <para>blah.</para>
+    </sect1>
+
+</article>
diff --git a/testdocs/tests/section.001.xml b/testdocs/tests/section.001.xml
new file mode 100644 (file)
index 0000000..9896b8f
--- /dev/null
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: section.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+    <section id="c2s1"><title>Section 1</title>
+      <para>blah.</para>
+      <section id="c2s1s1"><title>Section 1.1</title>
+       <para>blah.</para>
+       <section id="c2s1s1s1"><title>Section 1.1.1</title>
+         <para>blah.</para>
+         <section id="c2s1s1s1s1"><title>Section 1.1.1.1</title>
+           <para>blah.</para>
+           <section id="c2s1s1s1s1s1"><title>Section 1.1.1.1.1</title>
+             <para>blah.</para>
+           </section>
+           <section id="c2s1s1s1s1s2"><title>Section 1.1.1.1.2</title>
+             <para>blah.</para>
+           </section>
+           <section id="c2s1s1s1s1s3"><title>Section 1.1.1.1.3</title>
+             <para>blah.</para>
+           </section>
+         </section>
+         <section id="c2s1s1s1s2"><title>Section 1.1.1.2</title>
+           <para>blah.</para>
+         </section>
+         <section id="c2s1s1s1s3"><title>Section 1.1.1.3</title>
+           <para>blah.</para>
+         </section>
+       </section>
+       <section id="c2s1s1s2"><title>Section 1.1.2</title>
+         <para>blah.</para>
+       </section>
+       <section id="c2s1s1s3"><title>Section 1.1.3</title>
+         <para>blah.</para>
+       </section>
+      </section>
+      <section id="c2s1s2"><title>Section 1.2</title>
+       <para>blah.</para>
+      </section>
+      <section id="c2s1s3"><title>Section 1.3</title>
+       <para>blah.</para>
+      </section>
+    </section>
+
+</article>
diff --git a/testdocs/tests/section.002.xml b/testdocs/tests/section.002.xml
new file mode 100644 (file)
index 0000000..13be5ce
--- /dev/null
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: section.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+    <section id="c2s2"><title>Section 2</title>
+      <para>blah.</para>
+      <section id="c2s2s1"><title>Section 2.1</title>
+       <para>blah.</para>
+       <section id="c2s2s1s1"><title>Section 2.1.1</title>
+         <para>blah.</para>
+         <section id="c2s2s1s1s1"><title>Section 2.1.1.1</title>
+           <para>blah.</para>
+           <section id="c2s2s1s1s1s1s"><title>Section 2.1.1.1.1</title>
+             <para>blah.</para>
+           </section>
+           <section id="c2s2s1s1s1s2"><title>Section 2.1.1.1.2</title>
+             <para>blah.</para>
+           </section>
+           <section id="c2s2s1s1s1s3"><title>Section 2.1.1.1.3</title>
+             <para>blah.</para>
+           </section>
+         </section>
+         <section id="c2s2s1s1s2"><title>Section 2.1.1.2</title>
+           <para>blah.</para>
+         </section>
+         <section id="c2s2s1s1s3"><title>Section 2.1.1.3</title>
+           <para>blah.</para>
+         </section>
+       </section>
+       <section id="c2s2s1s2"><title>Section 2.1.2</title>
+         <para>blah.</para>
+       </section>
+       <section id="c2s2s1s3"><title>Section 2.1.3</title>
+         <para>blah.</para>
+       </section>
+      </section>
+      <section id="c2s2s2"><title>Section 2.2</title>
+       <para>blah.</para>
+      </section>
+      <section id="c2s2s3"><title>Section 2.3</title>
+       <para>blah.</para>
+      </section>
+    </section>
+    <section id="c2s3"><title>Section 3</title>
+      <para>blah.</para>
+    </section>
+
+</article>
diff --git a/testdocs/tests/segmentedlist.001.xml b/testdocs/tests/segmentedlist.001.xml
new file mode 100644 (file)
index 0000000..3c06dfc
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: segmentedlist.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<segmentedlist><title>State Capitals</title>
+<segtitle>State</segtitle>
+<segtitle>Capital</segtitle>
+<seglistitem><seg>Alabama</seg><seg>Montgomery</seg></seglistitem>
+<seglistitem><seg>Alaska</seg><seg>Anchorage</seg></seglistitem>
+<seglistitem><seg>Arkansas</seg><seg>Little Rock</seg></seglistitem>
+</segmentedlist>
+
+</article>
diff --git a/testdocs/tests/segmentedlist.002.xml b/testdocs/tests/segmentedlist.002.xml
new file mode 100644 (file)
index 0000000..eb10a50
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: segmentedlist.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<segmentedlist><title>State Capitals</title>
+<?dbhtml list-presentation='table' table-summary="testing summary"?>
+<?dbfo list-presentation='table'?>
+<segtitle>State</segtitle>
+<segtitle>Capital</segtitle>
+<seglistitem><seg>Alabama</seg><seg>Montgomery</seg></seglistitem>
+<seglistitem><seg>Alaska</seg><seg>Anchorage</seg></seglistitem>
+<seglistitem><seg>Arkansas</seg><seg>Little Rock</seg></seglistitem>
+</segmentedlist>
+
+</article>
diff --git a/testdocs/tests/set.001.xml b/testdocs/tests/set.001.xml
new file mode 100644 (file)
index 0000000..7e9d1ff
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE set PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+              "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<set>
+<setinfo>
+<title>Unit Test: set.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</setinfo>
+
+<book><title>First Book</title>
+<chapter><title>Chapter</title>
+<para>Some test data</para>
+</chapter>
+</book>
+
+<book><title>Second Book</title>
+<chapter><title>Chapter</title>
+<para>Some test data</para>
+</chapter>
+</book>
+
+<book><title>Third Book</title>
+<chapter><title>Chapter</title>
+<para>Some test data</para>
+</chapter>
+</book>
+
+</set>
diff --git a/testdocs/tests/table.001.xml b/testdocs/tests/table.001.xml
new file mode 100644 (file)
index 0000000..8f37787
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: table.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<table frame="all">
+<title>TFoot Test</title>
+<tgroup cols="2">
+<tfoot>
+<row>
+<entry>Foot Left</entry>
+<entry>Foot Right</entry>
+</row>
+</tfoot>
+<tbody>
+<row>
+<entry>Body Left</entry>
+<entry>Body Right</entry>
+</row>
+</tbody>
+</tgroup>
+</table>
+
+</article>
diff --git a/testdocs/tests/table.002.xml b/testdocs/tests/table.002.xml
new file mode 100644 (file)
index 0000000..d2abe9e
--- /dev/null
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: table.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<table id="width-test-1" frame="all">
+<title>Width Test 1</title>
+<tgroup cols="4" align="left">
+<colspec colnum="1" colname="c1" colwidth="1in"/>
+<colspec colnum="2" colname="c2" colwidth="1*"/>
+<colspec colnum="3" colname="c3" colwidth="5*"/>
+<colspec colnum="4" colname="c4" colwidth="1*+0.5in"/>
+<tbody>
+<row>
+<entry>1in</entry>
+<entry>1/7</entry>
+<entry>5/7</entry>
+<entry>1/7+0.5in</entry>
+</row>
+<row>
+<entry>some words to make the thing wrap around to test the width</entry>
+<entry>some words to make the thing wrap around to test the width</entry>
+<entry>some words to make the thing wrap around to test the width</entry>
+<entry>some words to make the thing wrap around to test the width</entry>
+</row>
+</tbody>
+</tgroup>
+</table>
+
+</article>
diff --git a/testdocs/tests/table.003.xml b/testdocs/tests/table.003.xml
new file mode 100644 (file)
index 0000000..3005383
--- /dev/null
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: table.003</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<table>
+<title>Server machine minimum required software</title>
+<indexterm>
+<primary>System requirements</primary>
+<secondary>Software</secondary>
+</indexterm>
+<tgroup cols="1">
+<colspec colname="col1" colnum="1" colwidth="2.50in"/>
+<thead valign="top">
+<row>
+<entry>Foo</entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry>foo</entry>
+</row>
+</tbody>
+</tgroup>
+</table>
+
+</article>
diff --git a/testdocs/tests/template.xml b/testdocs/tests/template.xml
new file mode 100644 (file)
index 0000000..f8a5d9f
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: <!--FIXME-->
+</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<!-- Change this: -->
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<!-- put your test here -->
+
+</article>
diff --git a/testdocs/tests/toc.001.xml b/testdocs/tests/toc.001.xml
new file mode 100644 (file)
index 0000000..b495c8c
--- /dev/null
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<book>
+<bookinfo>
+<title>Unit Test: toc.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</bookinfo>
+
+<toc>
+<tocchap>
+<tocentry>Preface</tocentry>
+<toclevel1>
+  <tocentry>Fake Entry</tocentry>
+  <tocentry pagenum="i">Why Read This Book?</tocentry>
+  <tocentry>This Book's Audience</tocentry>
+  <tocentry>Organization of This Book</tocentry>
+  <tocentry>Conventions Used in This Book</tocentry>
+  <tocentry>Getting This Book</tocentry>
+  <tocentry>Getting Examples from This Book</tocentry>
+  <tocentry>Getting DocBook</tocentry>
+  <tocentry>Request for Comments</tocentry>
+  <tocentry>Acknowledgements from Norm</tocentry>
+  <tocentry>Acknowledgements from Lenny</tocentry>
+  <tocentry>Acknowledgements from Norm and Lenny</tocentry>
+</toclevel1>
+</tocchap>
+<tocpart>
+<tocentry>Introduction</tocentry>
+<tocchap>
+<tocentry>Getting Started with SGML/XML</tocentry>
+<toclevel1>
+  <tocentry>HTML and SGML vs. XML</tocentry>
+  <tocentry>Basic SGML/XML Concepts</tocentry>
+  <tocentry>Elements and Attributes</tocentry>
+  <tocentry>Entities</tocentry>
+  <tocentry>How Does DocBook Fit In?</tocentry>
+  <toclevel2>
+    <tocentry>Testing a third level TOC</tocentry>
+  </toclevel2>
+</toclevel1>
+</tocchap>
+<tocchap>
+<tocentry>Creating DocBook Documents</tocentry>
+<toclevel1>
+  <tocentry>Making an SGML Document</tocentry>
+  <tocentry>Making an XML Document</tocentry>
+</toclevel1>
+</tocchap>
+</tocpart>
+</toc>
+
+<preface><title>Preface</title>
+
+<para>This book is really just a toc test.</para>
+
+</preface>
+
+</book>
+
diff --git a/testdocs/tests/variablelist.001.xml b/testdocs/tests/variablelist.001.xml
new file mode 100644 (file)
index 0000000..cd433be
--- /dev/null
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: variablelist.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<variablelist>
+<?dbfo list-presentation="list" term-width="1.25in" ?>
+<varlistentry>
+<term>short</term>
+<listitem>
+<para>A single short term with a description.
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term>more</term>
+<listitem>
+<para>Another single short term with a description.
+</para>
+<para>Another paragraph of description.
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term>again</term>
+<listitem>
+<para>YASSTWAD.
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term>short</term>
+<listitem>
+<para>A single short term with a description.
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term>more</term>
+<term>more</term>
+<term>more</term>
+<term>more</term>
+<listitem>
+<para>Several short terms in the same VLE.
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term>I'm still not satisfied.</term>
+<listitem>
+<para>A single long term with a description.
+</para>
+</listitem>
+</varlistentry>
+</variablelist>
+
+</article>
diff --git a/testdocs/tests/variablelist.002.xml b/testdocs/tests/variablelist.002.xml
new file mode 100644 (file)
index 0000000..dac8c09
--- /dev/null
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: variablelist.002</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<variablelist>
+  <varlistentry>
+    <term>
+      <methodsynopsis>
+        <modifier>static</modifier>
+        <modifier>public</modifier>
+
+        <type>void</type>
+        <methodname>import</methodname>
+
+        <methodparam>
+          <type>HttpServletRequest</type>
+          <parameter>req</parameter>
+        </methodparam>
+      </methodsynopsis>
+    </term>
+  <listitem>
+  <para>Foobar</para>
+  </listitem>
+      </varlistentry>
+</variablelist>
+
+</article>
diff --git a/testdocs/tests/variablelist.003.xml b/testdocs/tests/variablelist.003.xml
new file mode 100644 (file)
index 0000000..92aeb9a
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: variablelist.003</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<variablelist>
+<title>VariableList Title</title>
+<varlistentry><term>Term1</term>
+<listitem><para>Definition of Term1</para></listitem>
+</varlistentry>
+<varlistentry><term>Term2</term>
+<listitem><para>Definition of Term2</para></listitem>
+</varlistentry>
+<varlistentry id="someVLI"><term>Term3a</term><term>Term3b</term><term>Term3c</term>
+<listitem><para>Definition of Term3a,b,c</para></listitem>
+</varlistentry>
+</variablelist>
+
+</article>
diff --git a/testdocs/tests/variablelist.004.xml b/testdocs/tests/variablelist.004.xml
new file mode 100644 (file)
index 0000000..dbf2177
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: variablelist.004</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<variablelist termlength="30">
+<title>VariableList With Long Terms</title>
+<varlistentry><term>Term1 is very long</term>
+<listitem><para>Definition of Term1</para></listitem>
+</varlistentry>
+<varlistentry><term>Term2 is even longer than term1</term>
+<listitem><para>Definition of Term2</para></listitem>
+</varlistentry>
+<varlistentry><term>Term3a</term><term>Term3b is also long</term><term>Term3c</term>
+<listitem><para>Definition of Term3a,b,c</para></listitem>
+</varlistentry>
+</variablelist>
+
+</article>
diff --git a/testdocs/tests/xref.001.xml b/testdocs/tests/xref.001.xml
new file mode 100644 (file)
index 0000000..83f8095
--- /dev/null
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
+<!ENTITY blah "<para>Blah blah blah blah. Blah blah blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+Blah. Blah blah blah blah. Blah blah. Blah blah blah blah.
+</para>">
+]>
+<book>
+<bookinfo>
+<title>Unit Test: xref.001</title>
+<releaseinfo role="CVS">$Id</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</bookinfo>
+
+<dedication id="dedication"><title>Dedication</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+<para>For no good reason, this dedication includes cross-references:</para>
+
+<itemizedlist>
+<listitem><para>dedication: <xref linkend="dedication"/>.</para>
+</listitem>
+<listitem><para>preface: <xref linkend="preface"/>.</para>
+</listitem>
+<listitem><para>part: <xref linkend="part"/>.</para>
+</listitem>
+<listitem><para>chapter: <xref linkend="chapter"/>.</para>
+</listitem>
+<listitem><para>appendix: <xref linkend="appendix"/>.</para>
+</listitem>
+</itemizedlist>
+
+</dedication>
+
+<preface id="preface"><title>Preface</title>
+
+<para>A preface.</para>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</preface>
+
+<part id="part">
+<title>Part One Title</title>
+<partintro>
+<title>PartIntro Title</title>
+
+<para>Partintro content<footnote>
+<para>This is a footnote in a partintro.</para>
+</footnote>.</para>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+<sect1>
+<title>PartIntro Section</title>
+<para>PartIntros can actually have section content as well.</para>
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+</sect1>
+</partintro>
+
+<chapter id="chapter"><title>Chapter</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</chapter>
+
+</part>
+<part><title>Appendixes</title>
+
+<appendix id="appendix"><title>First Appendix</title>
+
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+&blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah; &blah;
+
+</appendix>
+
+</part>
+</book>