]> granicus.if.org Git - docbook-dsssl/commitdiff
New and updated tests, mostly for DocBook V4.4
authorNorman Walsh <ndw@nwalsh.com>
Tue, 23 Nov 2004 12:24:32 +0000 (12:24 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Tue, 23 Nov 2004 12:24:32 +0000 (12:24 +0000)
testdocs/tests/bibliography.003.xml [new file with mode: 0644]
testdocs/tests/bibliolist.001.xml
testdocs/tests/index.003.xml [new file with mode: 0644]
testdocs/tests/protocol.001.xml [new file with mode: 0644]
testdocs/tests/table.016.xml [new file with mode: 0644]
testdocs/tests/textobject.001.xml
testdocs/tests/textobject.002.xml [new file with mode: 0644]
testdocs/tests/wordsize.001.xml [new file with mode: 0644]
testdocs/tests/xmlspace.001.xml [new file with mode: 0644]
testdocs/tests/xref.004.xml [new file with mode: 0644]

diff --git a/testdocs/tests/bibliography.003.xml b/testdocs/tests/bibliography.003.xml
new file mode 100644 (file)
index 0000000..08538b5
--- /dev/null
@@ -0,0 +1,50 @@
+<?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.003</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</bibliographyinfo>
+
+<para>This unit test is for the <parameter>bibliography.collection</parameter>
+parameter.</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>
+
+<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>
+
+<bibliomixed id="xml11"/>
+<bibliomixed id="bib.docbook43"/>
+
+</bibliography>
+
index 87e2b1d8b0ec18bd3e7682d51e972b8fa19215ef..125230c863b2919995b1bdcd4e05b9c1104b6f9b 100644 (file)
@@ -1,4 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
 <article>
 <articleinfo>
 <title>Unit Test: bibliolist.001</title>
diff --git a/testdocs/tests/index.003.xml b/testdocs/tests/index.003.xml
new file mode 100644 (file)
index 0000000..cb60e73
--- /dev/null
@@ -0,0 +1,24 @@
+<?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: index.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>
+
+<index>
+<title>Index</title>
+
+<indexdiv>
+<title>Index Div</title>
+
+<indexentry>
+<primaryie>foo</primaryie>
+</indexentry>
+</indexdiv>
+</index>
+</book>
diff --git a/testdocs/tests/protocol.001.xml b/testdocs/tests/protocol.001.xml
new file mode 100644 (file)
index 0000000..8c39208
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
+<article id="ws">
+<articleinfo>
+<title>Unit Test: protocol.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 is a test of the <sgmltag class="attvalue">protocol</sgmltag>
+value of the <sgmltag class="attribute">class</sgmltag> attribute on
+<sgmltag>systemitem</sgmltag>: <systemitem class="protocol">http</systemitem>.
+</para>
+
+</article>
diff --git a/testdocs/tests/table.016.xml b/testdocs/tests/table.016.xml
new file mode 100644 (file)
index 0000000..974a89a
--- /dev/null
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: table.016</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>Tables can nest in HTML.</para>
+
+<informaltable border="1">
+<tbody>
+<tr>
+  <td>One</td>
+  <td>Two</td>
+  <td>Three</td>
+  <td>Four</td>
+</tr>
+<tr>
+  <td>One</td>
+  <td colspan="2" rowspan="2">
+
+    <informaltable border="1">
+    <tbody>
+    <tr>
+      <td>One</td>
+      <td>Two</td>
+    </tr>
+    <tr>
+      <td>Three</td>
+      <td>Four</td>
+    </tr>
+    </tbody>
+    </informaltable>
+
+  </td>
+  <td></td>
+  <td>Four</td>
+</tr>
+<tr>
+  <td>One</td>
+  <td colspan="2" rowspan="2">
+  </td>
+  <td></td>
+  <td>Four</td>
+</tr>
+<tr>
+  <td>One</td>
+  <td>Two</td>
+  <td>Three</td>
+  <td>Four</td>
+</tr>
+</tbody>
+</informaltable>
+
+</article>
index fc4fc21b4a851c6abc3d2162e2e09d07df6158bd..acec9f62367eee9cf9bd05e96d0302d591105f29 100644 (file)
@@ -13,7 +13,7 @@
 <para>The XML source for this document is:</para>
 
 <programlisting linenumbering="numbered"><textobject>
-<textdata fileref="tests/textobject.001.xml"/>
+<textdata fileref="textobject.001.xml"/>
 </textobject></programlisting>
 
-</article>
+</article>
\ No newline at end of file
diff --git a/testdocs/tests/textobject.002.xml b/testdocs/tests/textobject.002.xml
new file mode 100644 (file)
index 0000000..194b8f8
--- /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="http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"/>
+</textobject></programlisting>
+
+</article>
diff --git a/testdocs/tests/wordsize.001.xml b/testdocs/tests/wordsize.001.xml
new file mode 100644 (file)
index 0000000..1aeafc8
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
+<article id="ws">
+<articleinfo>
+<title>Unit Test: wordsize.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 is a test of the <sgmltag class='attribute'>wordsize</sgmltag>
+effectivity attribute.
+Here's a 64 bit symbol: <symbol wordsize="64">width_8</symbol>.
+Here's a 32 bit symbol: <symbol wordsize="32">width_4</symbol>.</para>
+
+</article>
diff --git a/testdocs/tests/xmlspace.001.xml b/testdocs/tests/xmlspace.001.xml
new file mode 100644 (file)
index 0000000..1f5567b
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: xmlspace.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" xml:space="preserve">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.
+
+Foo &lt;Bar&gt;</programlisting>
+
+</article>
diff --git a/testdocs/tests/xref.004.xml b/testdocs/tests/xref.004.xml
new file mode 100644 (file)
index 0000000..621552c
--- /dev/null
@@ -0,0 +1,330 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+          "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+<article id="C.FMU20030102A" lang="fr">
+  <title>Test Article</title>
+  <!-- sections -->
+  <section>
+    <title>Some definitions</title>
+    <para><variablelist>
+       <varlistentry>
+         <term id="def-1">The first word defined</term>
+         <listitem>
+             <para>The associate definition</para>
+         </listitem>
+       </varlistentry>
+       <varlistentry>
+         <term id="def-2">The second word defined</term>
+         <listitem>
+           <para>The associate definition</para>
+         </listitem>
+       </varlistentry>
+      </variablelist></para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+  </section>
+  <!-- sections -->
+  <section>
+    <title>Some analysis using previous defined word</title>
+    <section>
+      <title><xref linkend="def-1" endterm="def-1" /></title>
+      <para>Few about first defined word aspect of the problem.</para>
+    </section>
+    <section>
+      <title><xref linkend="def-2" endterm="def-2" /></title>
+      <para>Something about 2nd aspect.</para>
+    </section>
+    <section>
+      <title>A boring title</title>
+      <para>Something boring.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+      <para>Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.
+Some text to make it go on for a few pages.</para>
+
+    </section>
+  </section>
+</article>
\ No newline at end of file