]> granicus.if.org Git - docbook-dsssl/commitdiff
New and updated tests
authorNorman Walsh <ndw@nwalsh.com>
Sun, 29 Dec 2002 14:28:11 +0000 (14:28 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sun, 29 Dec 2002 14:28:11 +0000 (14:28 +0000)
30 files changed:
testdocs/tests/article.001.xml
testdocs/tests/article.003.xml [new file with mode: 0644]
testdocs/tests/article.004.xml [new file with mode: 0644]
testdocs/tests/author.001.xml [new file with mode: 0644]
testdocs/tests/author.002.xml [new file with mode: 0644]
testdocs/tests/book.003.xml
testdocs/tests/book.004.xml [new file with mode: 0644]
testdocs/tests/changebars.001.xml [new file with mode: 0644]
testdocs/tests/chapter.002.xml [new file with mode: 0644]
testdocs/tests/figure.002.xml [new file with mode: 0644]
testdocs/tests/funcsynopsis.001.xml [new file with mode: 0644]
testdocs/tests/glossary.001.xml
testdocs/tests/glossary.003.xml [new file with mode: 0644]
testdocs/tests/indexterm.001.xml
testdocs/tests/indexterm.002.xml
testdocs/tests/indexterm.003.xml [new file with mode: 0644]
testdocs/tests/mediaobject.001.xml
testdocs/tests/mediaobject.002.xml [new file with mode: 0644]
testdocs/tests/refentry.002.xml
testdocs/tests/refentry.005.xml [new file with mode: 0644]
testdocs/tests/refentry.006.xml [new file with mode: 0644]
testdocs/tests/revhistory.001.xml
testdocs/tests/simplelist.001.xml [new file with mode: 0644]
testdocs/tests/svg.001.xml
testdocs/tests/table.007.xml [new file with mode: 0644]
testdocs/tests/table.008.xml [new file with mode: 0644]
testdocs/tests/table.009.xml [new file with mode: 0644]
testdocs/tests/table.010.xml [new file with mode: 0644]
testdocs/tests/textobject.001.xml [new file with mode: 0644]
testdocs/tests/xref.002.xml [new file with mode: 0644]

index 305244e07b1708b4f05d7008e83789ce64c50c84..9438af3e28a14b1d029c420b02e18d5bbd0e21b5 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.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
 <article id="article">
 <articleinfo>
 <title>Unit Test: article.001.xml</title>
diff --git a/testdocs/tests/article.003.xml b/testdocs/tests/article.003.xml
new file mode 100644 (file)
index 0000000..f485937
--- /dev/null
@@ -0,0 +1,77 @@
+<?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 id="article">
+<articleinfo>
+<title>Unit Test: article.003.xml</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+<authorgroup>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+<author><firstname>Jane</firstname><surname>Doe</surname></author>
+</authorgroup>
+<abstract>
+<para>This is the abstract.</para>
+<para>It has several paras.</para>
+<para>It has several paras.</para>
+</abstract>
+</articleinfo>
+
+<para>Some preambulatory paragraph.</para>
+
+<section>
+<title>Section One</title>
+
+<para>Some other paragraph.</para>
+
+<section>
+<title>Section One.Two</title>
+
+<para>Some other paragraph.</para>
+
+</section>
+
+<section>
+<title>Section One.Three</title>
+
+<para>Some other paragraph.</para>
+
+</section>
+</section>
+
+<section>
+<title>Section Two</title>
+
+<para>Some other paragraph.</para>
+
+</section>
+
+<appendix>
+<title>Appendix One</title>
+
+<para>Some other paragraph.</para>
+
+<section>
+<title>Section One</title>
+
+<para>Some other paragraph.</para>
+
+<section>
+<title>Section One.Two</title>
+
+<para>Some other paragraph.</para>
+
+</section>
+
+<section>
+<title>Section One.Three</title>
+
+<para>Some other paragraph.</para>
+
+</section>
+</section>
+</appendix>
+
+</article>
+
diff --git a/testdocs/tests/article.004.xml b/testdocs/tests/article.004.xml
new file mode 100644 (file)
index 0000000..838591a
--- /dev/null
@@ -0,0 +1,26 @@
+<?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: article.004.xml</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+<authorgroup>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+<author><firstname>Jane</firstname><surname>Doe</surname></author>
+</authorgroup>
+<abstract>
+<para>This is the abstract.</para>
+<para>It has several paras.</para>
+<para>It has several paras.</para>
+</abstract>
+<copyright><year>2002</year><holder>No one in particular</holder></copyright>
+</articleinfo>
+
+<para>This is an article tests.</para>
+
+<ackno>I'd like to thank all the tests that came before me.</ackno>
+
+</article>
diff --git a/testdocs/tests/author.001.xml b/testdocs/tests/author.001.xml
new file mode 100644 (file)
index 0000000..4f1b949
--- /dev/null
@@ -0,0 +1,40 @@
+<?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 id="book">
+<bookinfo>
+<title>Unit Test: author.001</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+<authorgroup>
+<corpauthor>SomeCorp</corpauthor>
+<author role="first-last">
+  <honorific>Mr</honorific>
+  <firstname>FirstFirstlast</firstname>
+  <othername>Middlename</othername>
+  <surname>Surname</surname>
+  <lineage>Jr</lineage>
+</author>
+<author role="last-first">
+  <honorific>Mr</honorific>
+  <firstname>FirstLastfirst</firstname>
+  <othername>Middlename</othername>
+  <surname>Surname</surname>
+  <lineage>Jr</lineage>
+</author>
+<author role="family-given">
+  <honorific>Mr</honorific>
+  <firstname>FirstFamilygiven</firstname>
+  <othername>Middlename</othername>
+  <surname>Surname</surname>
+  <lineage>Jr</lineage>
+</author>
+</authorgroup>
+</bookinfo>
+
+<chapter>
+<title>Chapter Title</title>
+
+<para>Content statisfies a book.</para>
+</chapter>
+
+</book>
diff --git a/testdocs/tests/author.002.xml b/testdocs/tests/author.002.xml
new file mode 100644 (file)
index 0000000..5432c62
--- /dev/null
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+               "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+<book id="book">
+<bookinfo>
+<title>Unit Test: author.002</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+</bookinfo>
+
+<chapter>
+<title>Chapter Title</title>
+
+<simplelist>
+<member>
+<author id="a1" role="first-last">
+  <honorific>Mr</honorific>
+  <firstname>FirstFirstlast</firstname>
+  <othername>Middlename</othername>
+  <surname>Surname</surname>
+  <lineage>Jr</lineage>
+</author>
+</member>
+<member id="m2">
+<author role="last-first">
+  <honorific>Mr</honorific>
+  <firstname>FirstLastfirst</firstname>
+  <othername>Middlename</othername>
+  <surname>Surname</surname>
+  <lineage>Jr</lineage>
+</author>
+</member>
+<member>
+<author role="family-given">
+  <honorific>Mr</honorific>
+  <firstname>FirstFamilygiven</firstname>
+  <othername>Middlename</othername>
+  <surname>Surname</surname>
+  <lineage>Jr</lineage>
+</author>
+</member>
+</simplelist>
+
+<para>See <link linkend="a1">first author</link> or
+<link linkend="m2">second member</link>.</para>
+
+</chapter>
+
+</book>
index 0a6f418c0ae02d3377ad515e6b0cf1718edb50fd..ee4a394abb90623a01357f761268f75603a0e7ae 100644 (file)
@@ -100,6 +100,7 @@ Some abstract. Some abstract. Some abstract. Some abstract.
 </abstract>
 </chapterinfo>
 <title>First Chapter</title>
+
 &blah;
 
 <figure id="figduck"><title>A Test Figure</title>
@@ -109,8 +110,18 @@ A figure. Just to test the numeration.</programlisting>
 
 <section><title>First Section</title>
 
+<figure id="figduck2"><title>Another Test Figure</title>
+<programlisting>
+A figure. Just to test the numeration.</programlisting>
+</figure>
+
  &blah;
 
+<example id="example"><title>Test Example</title>
+<programlisting>
+An example.</programlisting>
+</example>
+
 <section><title>First Subsection</title>
 
 &blah;
diff --git a/testdocs/tests/book.004.xml b/testdocs/tests/book.004.xml
new file mode 100644 (file)
index 0000000..d972f30
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+               "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+<book id="book">
+<title>Unit Test: book.003</title>
+
+<chapter id="chap1">
+<chapterinfo>
+<abstract><para>bla in the first chapter</para>
+</abstract>
+</chapterinfo>
+<title>First <filename>Filename</filename> Chapter</title>
+
+<para>blah with <filename>filename</filename>.</para>
+
+</chapter>
+
+<chapter id="chap2">
+<title>My Product<emphasis><superscript>plus</superscript></emphasis> description</title>
+
+<para>blah.</para>
+
+</chapter>
+</book>
diff --git a/testdocs/tests/changebars.001.xml b/testdocs/tests/changebars.001.xml
new file mode 100644 (file)
index 0000000..1d17f81
--- /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 id="article">
+<articleinfo>
+<title>Unit Test: changebars.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 change bars.</para>
+
+<para revisionflag="added">This paragraph was added.</para>
+
+<para revisionflag="deleted">This paragraph was deleted.</para>
+
+<para>This paragraph contains <phrase role="changed">changed</phrase>,
+<phrase role="added">and </phrase>
+added<phrase role="deleted">, and deleted</phrase> inlines.</para>
+
+</article>
diff --git a/testdocs/tests/chapter.002.xml b/testdocs/tests/chapter.002.xml
new file mode 100644 (file)
index 0000000..419ce0a
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<chapter id="chapter">
+<chapterinfo>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</chapterinfo>
+<title>Unit Test: chapter.001.xml</title>
+
+<para>This is a chapter test.</para>
+
+<para>It's self-referential, too: <xref linkend="chapter"/>.</para>
+
+</chapter>
diff --git a/testdocs/tests/figure.002.xml b/testdocs/tests/figure.002.xml
new file mode 100644 (file)
index 0000000..f354162
--- /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: 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>
+
+<para>This paragraph precedes the first figure. The following figure has
+float="1".</para>
+
+<figure id="figduck1" float="1">
+  <title>The Duck</title>
+  <mediaobject>
+    <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>
+
+<para>This paragraph is between the figures. The following figure has
+float="right".</para>
+
+<figure id="figduck2" float="right">
+  <title>The Duck</title>
+  <mediaobject>
+    <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>
+
+<para>This paragraph follows the figures.</para>
+
+</article>
diff --git a/testdocs/tests/funcsynopsis.001.xml b/testdocs/tests/funcsynopsis.001.xml
new file mode 100644 (file)
index 0000000..b399ed3
--- /dev/null
@@ -0,0 +1,124 @@
+<!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: funcsynopsis.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>A funcsynopsis.</para>
+
+<funcsynopsis>
+<funcsynopsisinfo>
+#include &lt;varargs.h&gt;
+</funcsynopsisinfo>
+<funcprototype>
+  <funcdef><type>float</type> <function>rand</function></funcdef>
+  <void/>
+</funcprototype>
+
+<funcprototype>
+  <funcdef>int <function>max</function></funcdef>
+  <varargs/>
+</funcprototype>
+
+<funcprototype>
+  <funcdef>int <function>idiv</function></funcdef>
+    <paramdef><type>int</type> <parameter>n</parameter></paramdef>
+    <paramdef><type>int</type> <parameter>m</parameter></paramdef>
+</funcprototype>
+</funcsynopsis>
+
+<para>Another.</para>
+
+<funcsynopsis>
+<funcprototype>
+  <funcdef>void <function>qsort</function></funcdef>
+    <paramdef>void *<parameter>dataptr</parameter>[]</paramdef>
+    <paramdef>int <parameter>left</parameter></paramdef>
+    <paramdef>int <parameter>right</parameter></paramdef>
+    <paramdef>int (*<parameter>comp</parameter>)
+      <funcparams>void *, void *</funcparams></paramdef>
+</funcprototype>
+</funcsynopsis>
+
+<para>Another.</para>
+
+<funcsynopsis>
+<funcprototype>
+  <funcdef>int <function>foo_frob_something</function></funcdef>
+    <paramdef>foo_sometype1 <parameter>foo_frob_parm1</parameter></paramdef>
+    <paramdef>foo_sometype1 <parameter>foo_frob_parm2</parameter></paramdef>
+    <paramdef>foo_sometype1 <parameter>foo_frob_parm3</parameter></paramdef>
+    <paramdef><type>int</type> (* <parameter>parm4</parameter> )
+      <funcparams>int a, int b, int c</funcparams>
+    </paramdef>
+    <paramdef>foo_sometype1 <parameter>foo_frob_parm5</parameter></paramdef>
+</funcprototype>
+
+<funcprototype>
+  <funcdef>int <function>foo_frob_something</function></funcdef>
+    <paramdef>foo_sometype1 <parameter>foo_frob_parm1</parameter></paramdef>
+    <paramdef>foo_sometype1 <parameter>foo_frob_parm2</parameter></paramdef>
+    <paramdef>foo_sometype1 <parameter>foo_frob_parm3</parameter></paramdef>
+    <paramdef><type>int</type> (* <parameter>parm4</parameter> )
+      <funcparams>int a, int b, int c</funcparams>
+    </paramdef>
+    <paramdef>foo_sometype1 <parameter>foo_frob_parm5</parameter></paramdef>
+</funcprototype>
+</funcsynopsis>
+
+<para>Another.</para>
+
+<funcsynopsis><?dbhtml funcsynopsis-style="ansi"?>
+<funcsynopsisinfo>
+#include &lt;varargs.h&gt;
+</funcsynopsisinfo>
+<funcprototype>
+  <funcdef><type>float</type> <function>rand</function></funcdef>
+  <void/>
+</funcprototype>
+
+<funcprototype>
+  <funcdef>int <function>max</function></funcdef>
+  <varargs/>
+</funcprototype>
+
+<funcprototype>
+  <funcdef>int <function>idiv</function></funcdef>
+    <paramdef><type>int</type> <parameter>n</parameter></paramdef>
+    <paramdef><type>int</type> <parameter>m</parameter></paramdef>
+</funcprototype>
+</funcsynopsis>
+
+<para>Another.</para>
+
+<funcsynopsis><?dbhtml funcsynopsis-style="ansi"?>
+<funcprototype>
+  <funcdef>void <function>qsort</function></funcdef>
+    <paramdef>void *<parameter>dataptr</parameter>[]</paramdef>
+    <paramdef>int <parameter>left</parameter></paramdef>
+    <paramdef>int <parameter>right</parameter></paramdef>
+    <paramdef><type>int</type> (*<parameter>comp</parameter>)
+      <funcparams>void *, void *</funcparams></paramdef>
+</funcprototype>
+</funcsynopsis>
+
+<para>Another.</para>
+
+<funcsynopsis><?dbhtml funcsynopsis-style="ansi"?>
+<funcprototype>
+  <funcdef>int <function>foo_frob_something</function></funcdef>
+    <paramdef>foo_sometype1 <parameter>foo_frob_parm1</parameter></paramdef>
+    <paramdef>foo_sometype1 <parameter>foo_frob_parm2</parameter></paramdef>
+    <paramdef>foo_sometype1 <parameter>foo_frob_parm3</parameter></paramdef>
+    <paramdef>int (* <parameter>parm4</parameter> )
+      <funcparams>int a, int b, int c</funcparams></paramdef>
+    <paramdef>foo_sometype1 <parameter>foo_frob_parm5</parameter></paramdef>
+</funcprototype>
+</funcsynopsis>
+
+</article>
index e9762e48c393a1a3b2039a7190887e73150992dd..aa6158c9c2b3816897c4d3c73ce97a8bee773e6b 100644 (file)
@@ -1,15 +1,27 @@
 <?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>
-<?dbfo glossterm-width="1in"?>
-<glossaryinfo>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+                      "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+<book>
+<bookinfo>
 <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>
+</bookinfo>
+
+<chapter>
+<title>A Chapter</title>
+
+<para>There's a <sgmltag>firstterm</sgmltag> here:
+<firstterm>1TBS</firstterm>.</para>
+
+<para>And there's a couple of <sgmltag>glossterm</sgmltag>s here:
+<glossterm>1TBS</glossterm>, <glossterm>@-party</glossterm>.</para>
+</chapter>
+
+<glossary>
+<?dbfo glossterm-width="1in"?>
 
 <glossdiv><title>0</title>
 
@@ -272,3 +284,4 @@ that took on a life of their own.  See {Eric Conspiracy} for one example.</para>
 </glossentry>
 </glossdiv>
 </glossary>
+</book>
\ No newline at end of file
diff --git a/testdocs/tests/glossary.003.xml b/testdocs/tests/glossary.003.xml
new file mode 100644 (file)
index 0000000..b2a9667
--- /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: glossary.003</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+</articleinfo>
+
+<para>This is a test.</para>
+
+<glossary>
+<glossentry><glossterm>test1</glossterm>
+<glossdef><para>First definition</para></glossdef>
+</glossentry>
+
+<glossentry><glossterm>test2</glossterm>
+<glossdef><para>First definition</para></glossdef>
+<glossdef><para>Second definition</para></glossdef>
+</glossentry>
+</glossary>
+
+</article>
index 1efa0f192511ff174380c8ae90f64e473eb98154..fd32edbc351f6727e56c9e8e08312428560cb959 100644 (file)
 
 <chapter><title>First Chapter</title>
 
+<indexterm zone="app"><primary>Appendix</primary></indexterm>
+
 <para>This is a test paragraph.
-<indexterm>
+<indexterm id="foo">
 <primary>@foo</primary>
 </indexterm>
 <indexterm>
 <primary>&gt; operator</primary>
 </indexterm>
 <indexterm>
+<primary>&lt; operator</primary>
+</indexterm>
+<indexterm id="ap1.a">
 <primary>ap1</primary>
 </indexterm>
 
-<indexterm>
+<indexterm id="ap1.b">
+<primary>ap1</primary>
+</indexterm>
+<indexterm id="ap1.d">
 <primary>ap1</primary>
 </indexterm>
 <indexterm>
 </indexterm>
 <indexterm>
 <primary>dp2</primary>
+<seealso>dp1, dp1ds1</seealso>
 </indexterm></para>
 
 </chapter>
 
-<appendix><title>First Appendix</title>
+<appendix id="app"><title>First Appendix</title>
 
 <para>This is just a test.
-<indexterm>
+<indexterm id="ap1.e">
 <primary>ap1</primary>
 </indexterm>
 <indexterm>
 </indexterm></para>
 </appendix>
 
+<appendix><title>Another Appendix</title>
+
+<para>More testing.</para>
+
+<indexterm>
+<primary id="ap1.c">ap1</primary>
+</indexterm>
+<indexterm>
+<primary>ap1</primary>
+</indexterm>
+<indexterm>
+<primary>ap2</primary>
+</indexterm>
+
+</appendix>
+
 <index id="idx"/>
 
 </book>
index e12b43d74fdd6b50a8c7e2d5d411b2c83ca91f5b..4f1a24deef6257e18489f7793d13ccf4efe94db4 100644 (file)
@@ -19,6 +19,9 @@
 <indexterm>
 <primary>ap2</primary>
 </indexterm>
+<indexterm id="spanstart" class="startofrange">
+<primary>spanning</primary>
+</indexterm>
 
 <indexterm>
 <primary>bp1</primary>
   <primary>gq</primary>
 </indexterm></para>
 
+<indexterm startref="spanstart" class="endofrange">
+<primary>spanning</primary>
+</indexterm>
+
 </appendix>
 
 <index id="idx"/>
diff --git a/testdocs/tests/indexterm.003.xml b/testdocs/tests/indexterm.003.xml
new file mode 100644 (file)
index 0000000..8c44974
--- /dev/null
@@ -0,0 +1,31 @@
+<?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.003</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>An indexterm starts
+here.<indexterm class="startofrange" id="start">
+<primary>Start</primary></indexterm></para>
+
+</chapter>
+
+<chapter><title>Second Chapter</title>
+
+<para>The term ends
+here.<indexterm class="endofrange" startref="start"/>
+</para>
+
+</chapter>
+
+<index id="idx"/>
+
+</book>
index 6ea3e76d501cc4a61f471047e756afb4119bf1fd..de6bbc31eeb0699de68e70dea3abf580f139a060 100644 (file)
@@ -2,7 +2,6 @@
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
                   "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
 <article>
-<?dbhtml dir="html"?>
 <articleinfo>
 <title>Unit Test: mediaobject.001</title>
 <releaseinfo role="CVS">$Id$</releaseinfo>
diff --git a/testdocs/tests/mediaobject.002.xml b/testdocs/tests/mediaobject.002.xml
new file mode 100644 (file)
index 0000000..78c725f
--- /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: mediaobject.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>
+
+  <mediaobject>
+    <imageobject>
+      <imagedata
+        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>
index b7360d487d09981ff40635319b93c83c151550ee..8155a215768bc775f46ea733302aa87ae474a0a9 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.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
 <article>
 <articleinfo>
 <title>Unit Test: refentry.002</title>
 <refpurpose>Another test of a minimal RefEntry</refpurpose>
 </refnamediv>
 
-<refsect1>
+<refsection>
 <title>Description</title>
 <para>This is a minimal RefEntry.</para>
-</refsect1>
+
+<refsection>
+<title>Subsection</title>
+<para>This is a minimal RefEntry.</para>
+
+<refsection>
+<title>Sub-subsection</title>
+<para>This is a minimal RefEntry.</para>
+</refsection>
+</refsection>
+</refsection>
+
+<refsection>
+<title>More Description</title>
+<para>This is a not-so minimal RefEntry.</para>
+</refsection>
+
+<refsection>
+<title>Even More Description</title>
+<para>This is an even less minimal RefEntry.</para>
+</refsection>
+
 </refentry>
 
 </article>
diff --git a/testdocs/tests/refentry.005.xml b/testdocs/tests/refentry.005.xml
new file mode 100644 (file)
index 0000000..c09458c
--- /dev/null
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+<refentry id="lessminimal">
+<refentryinfo>
+<title>Unit Test: refentry.005</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</refentryinfo>
+
+<refmeta>
+<refentrytitle>Also Minimal Title</refentrytitle>
+<manvolnum>3</manvolnum>
+</refmeta>
+<refnamediv>
+<refname>Also Minimal</refname>
+<refpurpose>Another test of a minimal RefEntry</refpurpose>
+</refnamediv>
+
+<refsection>
+<title>Description</title>
+<para>This is a minimal RefEntry.</para>
+
+<refsection>
+<title>Subsection</title>
+<para>This is a minimal RefEntry.</para>
+
+<refsection>
+<title>Sub-subsection</title>
+<para>This is a minimal RefEntry.</para>
+</refsection>
+</refsection>
+</refsection>
+
+<refsection>
+<title>More Description</title>
+<para>This is a not-so minimal RefEntry.</para>
+</refsection>
+
+<refsection>
+<title>Even More Description</title>
+<para>This is an even less minimal RefEntry.</para>
+</refsection>
+
+</refentry>
diff --git a/testdocs/tests/refentry.006.xml b/testdocs/tests/refentry.006.xml
new file mode 100644 (file)
index 0000000..e3828bc
--- /dev/null
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+<refentry id="lessminimal">
+<refentryinfo>
+<title>Unit Test: refentry.006</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</refentryinfo>
+
+<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>
+
+<refsect2>
+<title>Subsection</title>
+<para>This is a minimal RefEntry.</para>
+
+<refsect3>
+<title>Sub-subsection</title>
+<para>This is a minimal RefEntry.</para>
+</refsect3>
+</refsect2>
+</refsect1>
+
+<refsect1>
+<title>More Description</title>
+<para>This is a not-so minimal RefEntry.</para>
+</refsect1>
+
+<refsect1>
+<title>Even More Description</title>
+<para>This is an even less minimal RefEntry.</para>
+</refsect1>
+
+</refentry>
index c50d72aab6e9e3c28890deb8dc93d518a0a533ad..90e65c76af1999b5778baf099f19ba2b520c3b18 100644 (file)
 
 <para>This article tests revhistory. It appears in the articleinfo.</para>
 
+<para>This paragraph also contains the revhistory.
+<revhistory>
+<revision>
+<revnumber>1.0</revnumber>
+<date>13 Mar 2002</date>
+<authorinitials>ndw</authorinitials>
+<revremark>Some remark.</revremark>
+</revision>
+<revision>
+<revnumber>0.9</revnumber>
+<date>20 Nov 1998</date>
+<authorinitials>ndw</authorinitials>
+<revremark>Some remark about the revision</revremark>
+</revision>
+<revision>
+<revnumber>0.8</revnumber>
+<date>19 Nov 1998</date>
+<authorinitials>ndw</authorinitials>
+<revremark>Some remark about the revision</revremark>
+</revision>
+<revision>
+<revnumber>0.7</revnumber>
+<date>18 Nov 1998</date>
+<authorinitials>ndw</authorinitials>
+<revremark>Some remark about the revision</revremark>
+</revision>
+</revhistory>
+</para>
+
+<para>And this paragraph contains a different one:
+<revhistory>
+  <revision>
+      <revnumber>1.1.1</revnumber>
+      <date>12.6.2002</date>
+      <authorinitials>ndw</authorinitials>
+      <revdescription>
+        <itemizedlist>
+          <listitem><para>Item 1</para></listitem> 
+          <listitem><para>Item 2</para></listitem> 
+        </itemizedlist>
+      </revdescription>
+  </revision>
+</revhistory>
+</para>
+
 </article>
diff --git a/testdocs/tests/simplelist.001.xml b/testdocs/tests/simplelist.001.xml
new file mode 100644 (file)
index 0000000..057508d
--- /dev/null
@@ -0,0 +1,53 @@
+<?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: simplelist.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>An inline simple list:
+<simplelist type="inline">
+<member>eggs</member>
+<member>milk</member>
+<member>butter</member>
+</simplelist>.
+</para>
+
+<para>A horizontal simple list:</para>
+
+<simplelist type="horiz" columns="3">
+<member>A</member>
+<member>B</member>
+<member>C</member>
+<member>D</member>
+<member>E</member>
+<member>F</member>
+<member>G</member>
+<member>H</member>
+<member>I</member>
+<member>J</member>
+<member>K</member>
+</simplelist>
+
+<para>A vertical simple list:</para>
+
+<simplelist type="vert" columns="3">
+<member>A</member>
+<member>B</member>
+<member>C</member>
+<member>D</member>
+<member>E</member>
+<member>F</member>
+<member>G</member>
+<member>H</member>
+<member>I</member>
+<member>J</member>
+<member>K</member>
+</simplelist>
+
+</article>
index 74c1966e3ca1ef2882f133c8e501799617d397ef..45522513acfb2e4219c025c1494f1d7c9ab746c3 100644 (file)
@@ -14,7 +14,8 @@
 
 <mediaobject>
   <imageobject>
-    <svg:svg xmlns:svg="http://www.w3.org/2000/svg">
+    <svg:svg xmlns:svg="http://www.w3.org/2000/svg"
+       height="4in" width="4in">
       <svg:g transform="scale(0.5)">
         <svg:polygon style="fill:red; stroke:blue; stroke-width:10"
                      points="350, 75 379,161 469,161 397,215
diff --git a/testdocs/tests/table.007.xml b/testdocs/tests/table.007.xml
new file mode 100644 (file)
index 0000000..47f7956
--- /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: table.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>
+
+<para>Missing center cell...</para>
+
+<informaltable frame="none">
+<tgroup cols="3">
+<colspec colname="c2" colnum="2" colsep="1"/>
+<colspec colname="c3" colnum="3"/>
+<tbody>
+<row>
+<entry>a foo</entry>
+<entry>a bar</entry>
+<entry>a baz</entry>
+</row>
+<row rowsep="1">
+<entry>b foo</entry>
+<entry namest="c3">b baz</entry>
+</row>
+<row>
+<entry>c foo</entry>
+<entry>c foo</entry>
+<entry>c baz</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/table.008.xml b/testdocs/tests/table.008.xml
new file mode 100644 (file)
index 0000000..c3458a1
--- /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: table.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>
+
+<para>Table style test.</para>
+
+<informaltable frame="none" tabstyle="style1">
+<tgroup cols="3">
+<colspec colname="c2" colnum="2" colsep="1"/>
+<colspec colname="c3" colnum="3"/>
+<tbody>
+<row>
+<entry>a foo</entry>
+<entry>a bar</entry>
+<entry>a baz</entry>
+</row>
+<row rowsep="1">
+<entry>b foo</entry>
+<entry namest="c3">b baz</entry>
+</row>
+<row>
+<entry>c foo</entry>
+<entry>c foo</entry>
+<entry>c baz</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+<informaltable frame="none">
+<tgroup cols="3">
+<colspec colname="c2" colnum="2" colsep="1"/>
+<colspec colname="c3" colnum="3"/>
+<tbody>
+<row>
+<entry>no style</entry>
+<entry>a bar</entry>
+<entry>a baz</entry>
+</row>
+<row rowsep="1">
+<entry>b foo</entry>
+<entry namest="c3">b baz</entry>
+</row>
+<row>
+<entry>c foo</entry>
+<entry>c foo</entry>
+<entry>c baz</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/table.009.xml b/testdocs/tests/table.009.xml
new file mode 100644 (file)
index 0000000..f2d1860
--- /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: table.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>
+
+<para>Nested table test.</para>
+
+<informaltable frame="all">
+<tgroup cols="3">
+<tbody>
+<row>
+<entry>a foo</entry>
+<entry>a bar</entry>
+<entry>a baz</entry>
+</row>
+<row>
+<entry>b foo</entry>
+<entrytbl cols="3">
+  <colspec colwidth="200"/>
+  <tbody>
+    <row>
+      <entry>a' foo</entry>
+      <entry>a' bar</entry>
+      <entry>a' baz</entry>
+    </row>
+    <row>
+      <entry>b' foo</entry>
+      <entry>b' bar</entry>
+      <entry morerows="1">b' and c' baz</entry>
+    </row>
+    <row>
+      <entry>c' foo</entry>
+      <entry>c' bar</entry>
+    </row>
+  </tbody>
+</entrytbl>
+<entry>b baz</entry>
+</row>
+<row>
+<entry>c foo</entry>
+<entry>c bar</entry>
+<entry>c baz</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/table.010.xml b/testdocs/tests/table.010.xml
new file mode 100644 (file)
index 0000000..f299202
--- /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: 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>
+
+
+<informaltable frame="all">
+<tgroup cols="2">
+<colspec colwidth="1.5in"/>
+<colspec colwidth="2.5in"/>
+<tbody>
+<row>
+<entry><emphasis
+role="bold">Address:</emphasis></entry>
+<entry><literallayout>Some literal layout
+text goes here.</literallayout>
+</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>
diff --git a/testdocs/tests/textobject.001.xml b/testdocs/tests/textobject.001.xml
new file mode 100644 (file)
index 0000000..fc4fc21
--- /dev/null
@@ -0,0 +1,19 @@
+<?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: textobject.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>The XML source for this document is:</para>
+
+<programlisting linenumbering="numbered"><textobject>
+<textdata fileref="tests/textobject.001.xml"/>
+</textobject></programlisting>
+
+</article>
diff --git a/testdocs/tests/xref.002.xml b/testdocs/tests/xref.002.xml
new file mode 100644 (file)
index 0000000..d278b3c
--- /dev/null
@@ -0,0 +1,40 @@
+<?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: xref.002.xml</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="xreftext">Xref Endterm</modespec>
+</articleinfo>
+
+<para>This is an xref test.</para>
+
+<para>Cross reference to section one: <xref linkend="s1"/>.</para>
+
+<para>Cross reference to section two: <xref linkend="s2"/>.</para>
+
+<para>Cross reference to section one with endterm:
+<xref linkend="s1" endterm="xreftext"/>.</para>
+
+<para>Cross reference to section two with endterm:
+<xref linkend="s2" endterm="xreftext"/>.</para>
+
+<section id="s1">
+<title>Section One Title</title>
+
+<para>This text is irrelevant.</para>
+
+</section>
+
+<section id="s2" xreflabel="Section Two XRefLabel">
+<title>Section Two Title</title>
+
+<para>This text is irrelevant.</para>
+
+</section>
+
+</article>