]> granicus.if.org Git - docbook-dsssl/commitdiff
Updated tests
authorNorman Walsh <ndw@nwalsh.com>
Sat, 23 Oct 2004 12:20:46 +0000 (12:20 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sat, 23 Oct 2004 12:20:46 +0000 (12:20 +0000)
20 files changed:
testdocs/tests/article.006.xml
testdocs/tests/bibliography.004.xml [new file with mode: 0644]
testdocs/tests/bibliography.005.xml [new file with mode: 0644]
testdocs/tests/bibliolist.001.xml [new file with mode: 0644]
testdocs/tests/blockinfo.002.xml [new file with mode: 0644]
testdocs/tests/co.001.xml [new file with mode: 0644]
testdocs/tests/docbook-43.001.xml [new file with mode: 0644]
testdocs/tests/footnote.002.xml
testdocs/tests/indexterm.002.xml
testdocs/tests/orderedlist.003.xml [new file with mode: 0644]
testdocs/tests/procedure.002.xml
testdocs/tests/profile.001.xml [new file with mode: 0644]
testdocs/tests/qandaset.004.xml [new file with mode: 0644]
testdocs/tests/revhistory.001.xml
testdocs/tests/segmentedlist.003.xml [new file with mode: 0644]
testdocs/tests/simplesect.001.xml [new file with mode: 0644]
testdocs/tests/stepalternatives.001.xml [new file with mode: 0644]
testdocs/tests/superscript.001.xml [new file with mode: 0644]
testdocs/tests/table.015.xml [new file with mode: 0644]
testdocs/tests/variablelist.001.xml

index 8fec6ca83be9b9af1db17eb3d2d891d0411edd35..a860ccb7d337e63e5d92f5632c0a511c38bba2e2 100644 (file)
@@ -1,6 +1,4 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE article PUBLIC "-//Norman Walsh//DTD DocBook XML V3.1.7//EN"
-                  "http://www.oasis-open.org/docbook/xml/3.1.7/docbookx.dtd">
 <article id="article.006">
 <artheader>
 <title>Unit Test: article.006.xml</title>
diff --git a/testdocs/tests/bibliography.004.xml b/testdocs/tests/bibliography.004.xml
new file mode 100644 (file)
index 0000000..1cf50e3
--- /dev/null
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE bibliography PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+                       "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
+<bibliography>
+<bibliographyinfo>
+<title>Unit Test: bibliography.004</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+</bibliographyinfo>
+
+ <bibliodiv><title>Normative References</title>
+
+ <biblioentry id="xml">
+   <abbrev>XML 1.0</abbrev>
+   <editor>
+      <firstname>Tim</firstname>
+      <surname>Bray</surname>
+   </editor>
+   <title>Extensible Markup Language (XML) 1.0</title>
+   <edition>2nd ed</edition>
+   <releaseinfo>W3C Recommendation</releaseinfo>
+   <date>6 October 2000</date>
+   <copyright>
+     <year>2000</year>
+     <holder>World Wide Web Consortium</holder>
+   </copyright>
+   <biblioid class="uri">
+     <ulink url="http://www.w3.org/TR/2000/REC-xml-20001006/"/>
+   </biblioid>
+ </biblioentry>
+
+</bibliodiv>
+
+<bibliodiv><title>Articles</title>
+
+ <biblioentry id="flynn-xml-faq">
+   <abbrev>Fl01</abbrev>
+   <author>
+     <firstname>Peter</firstname>
+     <surname>Flynn</surname>
+   </author>
+   <title>The XML FAQ</title>
+   <edition>2.1</edition>
+   <date>1 January 2002</date>
+   <biblioid class="uri">
+     <ulink url="http://www.ucc.ie/xml/faq.html"/>
+   </biblioid>
+ </biblioentry>
+
+</bibliodiv>
+
+</bibliography>
diff --git a/testdocs/tests/bibliography.005.xml b/testdocs/tests/bibliography.005.xml
new file mode 100644 (file)
index 0000000..cc8459e
--- /dev/null
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
+<chapter>
+<chapterinfo>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+</chapterinfo>
+<title>Unit Test: bibliography.005</title>
+
+<para>This test case is for a bibliography in a section.</para>
+
+<section>
+<title>A Section Title</title>
+
+<para>Some content <acronym>here</acronym>.</para>
+
+<bibliography>
+  <title>Bibliography in a Section</title>
+ <biblioentry id="xml">
+   <abbrev>XML 1.0</abbrev>
+   <editor>
+      <firstname>Tim</firstname>
+      <surname>Bray</surname>
+   </editor>
+   <title>Extensible Markup Language (XML) 1.0</title>
+   <edition>2nd ed</edition>
+   <releaseinfo>W3C Recommendation</releaseinfo>
+   <date>6 October 2000</date>
+   <copyright>
+     <year>2000</year>
+     <holder>World Wide Web Consortium</holder>
+   </copyright>
+   <biblioid class="uri">
+     <ulink url="http://www.w3.org/TR/2000/REC-xml-20001006/"/>
+   </biblioid>
+ </biblioentry>
+</bibliography>
+</section>
+
+<section>
+<title>Another Section Title</title>
+
+<para>Some content</para>
+
+<section>
+<title>A Subsection Title</title>
+
+<para>Some content</para>
+
+<bibliography>
+  <title>Bibliography in a Subsection</title>
+ <biblioentry id="xml11">
+   <abbrev>XML 1.1</abbrev>
+   <editor>
+      <firstname>Tim</firstname>
+      <surname>Bray</surname>
+   </editor>
+   <title>Extensible Markup Language (XML) 1.1</title>
+   <releaseinfo>W3C Recommendation</releaseinfo>
+   <date>04 February 2004</date>
+   <copyright>
+     <year>2004</year>
+     <holder>World Wide Web Consortium</holder>
+   </copyright>
+   <biblioid class="uri">
+     <ulink url="http://www.w3.org/TR/xml11/"/>
+   </biblioid>
+ </biblioentry>
+</bibliography>
+</section>
+</section>
+
+<bibliography>
+  <title>Bibliography in a Chapter</title>
+ <biblioentry id="flynn-xml-faq">
+   <abbrev>Fl01</abbrev>
+   <author>
+     <firstname>Peter</firstname>
+     <surname>Flynn</surname>
+   </author>
+   <title>The XML FAQ</title>
+   <edition>2.1</edition>
+   <date>1 January 2002</date>
+   <biblioid class="uri">
+     <ulink url="http://www.ucc.ie/xml/faq.html"/>
+   </biblioid>
+ </biblioentry>
+</bibliography>
+</chapter>
diff --git a/testdocs/tests/bibliolist.001.xml b/testdocs/tests/bibliolist.001.xml
new file mode 100644 (file)
index 0000000..87e2b1d
--- /dev/null
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+<article>
+<articleinfo>
+<title>Unit Test: bibliolist.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 is a article.</para>
+
+<bibliolist>
+<title>Bibliography List</title>
+
+<para>This is a bibliography list.</para>
+
+<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>
+</bibliolist>
+
+<para>This is another paragraph.</para>
+
+</article>
+
+
diff --git a/testdocs/tests/blockinfo.002.xml b/testdocs/tests/blockinfo.002.xml
new file mode 100644 (file)
index 0000000..b74eadf
--- /dev/null
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: blockinfo.001</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+<author><firstname>Adam</firstname><surname>Di Carlo</surname>
+        <affiliation><address><email>adam@onshored.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+  <qandaset defaultlabel='number'>
+    <blockinfo>
+      <title>QandASet BlockInfo Title</title>
+      <legalnotice><para>This is a qandaset legal notice</para></legalnotice>
+    </blockinfo>
+    <qandaentry id="qa1">
+      <blockinfo>
+        <legalnotice><para>This is a qandaentry legal notice</para></legalnotice>
+      </blockinfo>
+      <question id="q1"><para>Question one.</para></question>
+      <answer id="a1">
+       <para>Answer one.
+See <xref linkend="faq-Two"/></para>
+      </answer>
+    </qandaentry>
+
+    <qandaentry id="Two">
+      <question id="faq-Two"><para>Question two.</para></question>
+      <answer id="faa-Two">
+       <para>Answer two.</para>
+      </answer>
+    </qandaentry>
+
+    <qandaentry id="Twoc">
+      <question id="faq-Twoc"><para>Question two.</para></question>
+      <answer id="faa-Twoc">
+       <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/co.001.xml b/testdocs/tests/co.001.xml
new file mode 100644 (file)
index 0000000..a0ee110
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: co.001</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+<author><firstname>John</firstname><surname>Himpel</surname>
+        <affiliation><address><email>jwhimpel@users.sourceforge.net</email></address></affiliation>
+</author>
+</articleinfo>
+
+<para>Callouts inside <sgmltag>userinput</sgmltag> elements.</para>
+
+<screen>
+<prompt>$</prompt><userinput>cp a b<co id='cp-co'
+linkends='cp'/></userinput>
+<prompt>$</prompt><userinput>mv a b<co id='mv-co'
+linkends='mv'/></userinput>
+</screen>
+<calloutlist>
+<callout arearefs='cp-co' id='cp'>
+<para>This is a copy.</para>
+</callout>
+<callout arearefs='mv-co' id='mv'>
+<para>This is a move.</para>
+</callout>
+</calloutlist>
+
+</article>
+
diff --git a/testdocs/tests/docbook-43.001.xml b/testdocs/tests/docbook-43.001.xml
new file mode 100644 (file)
index 0000000..4ba6407
--- /dev/null
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3CR2//EN"
+                  "http://docbook.org/xml/4.3CR2/docbookx.dtd">
+<article id="article">
+<articleinfo>
+<title>Unit Test: docbook-43.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>
+
+<glosslist>
+<title>Glossary List Title</title>
+<glossentry>
+<glossterm>Some Term</glossterm>
+<glossdef>
+<para>Some definition.</para>
+</glossdef>
+</glossentry>
+</glosslist>
+
+<blockquote>
+<blockinfo>
+<title>Block Quote Title</title>
+</blockinfo>
+<attribution>A. Nonymous</attribution>
+<para>Some memorable quotation.</para>
+</blockquote>
+
+<para>The assignment statement <code>x=1</code> is code.</para>
+
+<table>
+<caption>HTML Table caption</caption>
+<tbody>
+<tr>
+  <td>HTML</td>
+  <td>Table</td>
+</tr>
+</tbody>
+</table>
+
+<programlisting linenumbering="numbered">#!/usr/bin/perl -- # --*-Perl-*--
+
+use Getopt::Std;
+
+$usage = "Usage: $0 [-q] [-u|-p|-m] file [ file ... ]\n";
+
+die $usage if ! getopts('qupm');
+
+die $usage if ($opt_p + $opt_u + $opt_m) != 1;
+
+$file = shift @ARGV || die $usage;
+
+$opt = '-u' if $opt_u;
+$opt = '-p' if $opt_p;
+$opt = '-m' if $opt_m;</programlisting>
+
+
+<task>
+<title>A Task</title>
+<tasksummary>
+<para>This task doesn’t accomplish anything.</para>
+</tasksummary>
+<taskprerequisites>
+<para>Do something else first.</para>
+</taskprerequisites>
+<procedure>
+<step><para>Do This</para></step>
+<step><para>Do That</para></step>
+<step><para>Do one of these things:</para>
+<stepalternatives>
+<step><para>Do A</para></step>
+<step><para>Do B</para></step>
+<step><para>Do C</para></step>
+</stepalternatives>
+</step>
+<step><para>Do the other thing</para></step>
+</procedure>
+<taskrelated>
+<para>See some more interesting task after you’ve done this one.</para>
+</taskrelated>
+</task>
+
+<para>An <orgname>Organization Name</orgname> can now occur inline.</para>
+
+<para>The URI <uri>http://norman.walsh.name</uri> should really be a ulink.</para>
+
+<programlisting continuation="continues" linenumbering="numbered">while ($file) {
+    print "Converting $file to $opt linebreaks.\n" if !$opt_q;
+    open (F, "$file");
+    binmode F;
+    read (F, $_, -s $file);
+    close (F);
+    
+    s/\r\n/\n/sg;
+    s/\r/\n/sg;
+    
+    if ($opt eq '-p') {
+       s/\n/\r\n/sg;
+    } elsif ($opt eq '-m') {
+       s/\n/\r/sg;
+    }
+    
+    open (F, ">$file");
+    binmode F;
+    print F $_;
+    close (F);
+    
+    $file = shift @ARGV;
+}</programlisting>
+
+
+</article>
index 89b897371b9217b62a0748212a89d04dfe1cf029..17cc2be844553b312023d689b9a498455bceecf3 100644 (file)
@@ -36,7 +36,14 @@ East Yahoo, XX</address></footnote></entry>
 </tgroup>
 </table>
 
-<para>This paragraph contains a footnote<footnote>
-<para>This is a footnote.</para></footnote>.</para>
+<para>This is a longer paragraph. It will eventually contain a footnote, but first
+it has enough text to make the footnote appear in the middle of the paragraph.
+This is so we can test the effect of changing the
+<property>line-height-shift-adjustment</property> property. This paragraph
+contains a footnote<footnote>
+<para>This is a footnote.</para></footnote> (see, I said it would).
+Now it has more text to make the footnote appear in the middle of the paragraph.
+Now it has more text to make the footnote appear in the middle of the paragraph.
+</para>
 
 </article>
index 4f1a24deef6257e18489f7793d13ccf4efe94db4..e341cc3c9c1689476c1681802da5cb73c22a0427 100644 (file)
   <primary>gq</primary>
 </indexterm></para>
 
-<indexterm startref="spanstart" class="endofrange">
-<primary>spanning</primary>
-</indexterm>
+<indexterm startref="spanstart" class="endofrange"/>
 
 </appendix>
 
diff --git a/testdocs/tests/orderedlist.003.xml b/testdocs/tests/orderedlist.003.xml
new file mode 100644 (file)
index 0000000..747af89
--- /dev/null
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: orderedlist.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>Test list continuation. And cross-references;
+item “2”: <xref linkend="i2"/> and item “4”: <xref linkend="i4"/>.</para>
+
+<orderedlist spacing="compact">
+<listitem><simpara>First item</simpara></listitem>
+<listitem id="i2"><simpara>Second item</simpara></listitem>
+<listitem><simpara>Third item</simpara></listitem>
+</orderedlist>
+
+<para>And then a break occurs...a break in my sanity, apparently,
+because changing the numeration style across a “continues” break seems
+really stupid. But this a unit test, after all. Stupid is
+allowed.</para>
+
+<orderedlist spacing="compact" continuation="continues" numeration="upperalpha">
+<listitem id="i4"><simpara>Fourth item</simpara></listitem>
+<listitem><simpara>Fifth item</simpara></listitem>
+<listitem><simpara>Sixth item</simpara></listitem>
+</orderedlist>
+
+</article>
index 21be40fa88384ce345da8ed3f33ff5372e7bdce5..b2d3f3726a18adf12e82d6af7b0e883673b14a0c 100644 (file)
@@ -1,6 +1,6 @@
 <?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">
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+                  "http://docbook.org/xml/4.3/docbookx.dtd">
 <article>
 <articleinfo>
 <title>Unit Test: procedure.002</title>
 <step><title>Setup</title>
 <para>Select SETUP.</para>
 <substeps>
-<step><para>Should be an &ldquo;a&rdquo;</para>
+<step><para>Should be an “a”</para>
 </step>
-<step><para>Should be a &ldquo;b&rdquo;</para>
+<step><para>Should be a “b”</para>
 </step>
-<step><para>Should be a &ldquo;c&rdquo;</para>
+<step><para>Should be a “c”</para>
 </step>
-<step><para>Should be a &ldquo;d&rdquo;</para>
+<step><para>Should be a “d”</para>
 </step>
-<step><para>should be an &ldquo;e&rdquo;</para>
+<step><para>should be an “e”</para>
 <substeps>
-<step><para>should be an &ldquo;i&rdquo;</para>
+<step><para>should be an “i”</para>
 </step>
-<step><para>should be an &ldquo;ii&rdquo;</para>
+<step><para>should be an “ii”</para>
 </step>
 </substeps>
 </step>
diff --git a/testdocs/tests/profile.001.xml b/testdocs/tests/profile.001.xml
new file mode 100644 (file)
index 0000000..255ec5b
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: profile.001</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+<author><firstname>John</firstname><surname>Himpel</surname>
+        <affiliation><address><email>jwhimpel@users.sourceforge.net</email></address></affiliation>
+</author>
+</articleinfo>
+
+<para>Profile and linkends attribute.</para>
+
+<screen>
+xxxxxxx <co id="id-co" linkends="co"/>
+</screen>
+
+<calloutlist>
+<callout arearefs="id-co" id="co">
+<para>xxxx</para>
+</callout>
+</calloutlist>
+</article>
diff --git a/testdocs/tests/qandaset.004.xml b/testdocs/tests/qandaset.004.xml
new file mode 100644 (file)
index 0000000..b926d4b
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<!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.004</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+<author><firstname>Stephane</firstname><surname>Bortzmeyer</surname>
+</author>
+</articleinfo>
+
+<qandaset>
+<title>Exercices</title>
+<qandadiv>
+<title>First test</title>
+<qandaentry>
+<question>
+<para>Do something.</para>
+</question>
+<answer><para>It is possible<footnote><para>May be.</para>
+</footnote>to solve the problem?</para>
+</answer>
+</qandaentry>
+</qandadiv>
+</qandaset>
+
+</article>
index 90e65c76af1999b5778baf099f19ba2b520c3b18..5307b2ff3c7aaee01381019fff14374dca044f61 100644 (file)
 </revision>
 <revision>
 <revnumber>0.9</revnumber>
-<date>20 Nov 1998</date>
+<date>Nov 20, 1998</date>
 <authorinitials>ndw</authorinitials>
 <revremark>Some remark about the revision</revremark>
 </revision>
 <revision>
 <revnumber>0.8</revnumber>
-<date>19 Nov 1998</date>
+<date>19 November 1998</date>
 <authorinitials>ndw</authorinitials>
 <revremark>Some remark about the revision</revremark>
 </revision>
 <revision>
 <revnumber>0.7</revnumber>
-<date>18 Nov 1998</date>
+<date>November 18, 1998</date>
 <authorinitials>ndw</authorinitials>
 <revremark>Some remark about the revision</revremark>
 </revision>
diff --git a/testdocs/tests/segmentedlist.003.xml b/testdocs/tests/segmentedlist.003.xml
new file mode 100644 (file)
index 0000000..9726e2b
--- /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.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>Segmented list with embedded PI:</para>
+
+<segmentedlist>
+<segtitle>Label 1</segtitle>
+<segtitle>Label 2</segtitle>
+<seglistitem><?Pub Dtl?><seg>Content 1</seg>
+<seg>Content 2</seg>
+</seglistitem>
+</segmentedlist>
+
+</article>
diff --git a/testdocs/tests/simplesect.001.xml b/testdocs/tests/simplesect.001.xml
new file mode 100644 (file)
index 0000000..3c1b2ab
--- /dev/null
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
+<chapter>
+<chapterinfo>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+</chapterinfo>
+<title>Unit Test: bibliography.005</title>
+
+<para>This test case is for simplesect.</para>
+
+<section>
+<title>A Section Title</title>
+
+<para>Some content <acronym>here</acronym>.</para>
+
+<simplesect>
+<title>First Simplesect</title>
+<para>Some content</para>
+</simplesect>
+</section>
+
+<section>
+<title>Another Section Title</title>
+
+<para>Some content</para>
+
+<section>
+<title>A Subsection Title</title>
+
+<para>Some content</para>
+
+<simplesect>
+<title>Second Simplesect</title>
+<para>Some content</para>
+</simplesect>
+</section>
+</section>
+
+</chapter>
diff --git a/testdocs/tests/stepalternatives.001.xml b/testdocs/tests/stepalternatives.001.xml
new file mode 100644 (file)
index 0000000..1631ce8
--- /dev/null
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3b5//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.3b5/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>Step one</para>
+  <stepalternatives>
+    <step>
+      <para>Branch 1</para>
+      <substeps>
+        <step>
+          <para>a. </para>
+        </step>
+        <step>
+          <para>b. </para>
+        </step>
+      </substeps>
+    </step>
+    <step>
+      <para>Branch 2</para>
+      <substeps>
+        <step>
+          <para>a. </para>
+        </step>
+        <step>
+          <para>b. </para>
+        </step>
+      </substeps>
+    </step>
+  </stepalternatives>
+</step>
+<step>
+  <para>Step two</para>
+</step>
+</procedure>
+</article>
diff --git a/testdocs/tests/superscript.001.xml b/testdocs/tests/superscript.001.xml
new file mode 100644 (file)
index 0000000..25d3a82
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+<article id="article">
+<articleinfo>
+<title>Unit Test: superscript.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 superscripts and subscripts, such as
+“H<subscript>2</subscript>O” and
+“a<superscript>2</superscript> + b<superscript>2</superscript> = c<superscript>2</superscript>”.</para>
+
+</article>
diff --git a/testdocs/tests/table.015.xml b/testdocs/tests/table.015.xml
new file mode 100644 (file)
index 0000000..24db031
--- /dev/null
@@ -0,0 +1,127 @@
+<?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.015</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>Multi-page Table with THead and TFoot</title>
+<tgroup cols="2">
+<thead>
+<row>
+<entry>Head Left</entry>
+<entry>Head Right</entry>
+</row>
+</thead>
+<tfoot>
+<row>
+<entry>Foot Left</entry>
+<entry>Foot Right</entry>
+</row>
+</tfoot>
+<tbody>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+<row><entry>Body Left</entry><entry>Body Right</entry></row>
+</tbody>
+</tgroup>
+</table>
+
+</article>
index 20b37835b59be0d8ee0bd215734a584af3d5723c..9252bd47a37226027a7d0ee2344d42d332533ed8 100644 (file)
@@ -1,6 +1,6 @@
 <?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">
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
 <article>
 <articleinfo>
 <title>Unit Test: variablelist.001</title>
 </varlistentry>
 </variablelist>
 
+<variablelist>
+<varlistentry>
+<term>errnum :</term>
+<listitem>
+<para>the system error number. See the standard C errno documentation.
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term>Returns :</term>
+<listitem>
+<para>a string describing the error code. If the error code is
+unknown, it returns "unknown error (<code>&lt;code&gt;</code>)".
+The string can only be used until the next call to g_strerror().
+</para>
+</listitem>
+</varlistentry>
+</variablelist>
+
 </article>