]> granicus.if.org Git - docbook-dsssl/commitdiff
New and updated tests
authorNorman Walsh <ndw@nwalsh.com>
Fri, 3 Mar 2006 08:43:12 +0000 (08:43 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 3 Mar 2006 08:43:12 +0000 (08:43 +0000)
testdocs/tests/dir.001.xml [new file with mode: 0644]
testdocs/tests/informaltable.015.xml
testdocs/tests/programlisting.002.xml
testdocs/tests/pubsnumber.xml [new file with mode: 0644]
testdocs/tests/sgmltag.xml [new file with mode: 0644]
testdocs/tests/table.019.xml [new file with mode: 0644]

diff --git a/testdocs/tests/dir.001.xml b/testdocs/tests/dir.001.xml
new file mode 100644 (file)
index 0000000..1c796d3
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+          "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
+<chapter id="chapter" dir="ltr">
+<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 dir="ltr">This is a chapter written in English, a left-to-right
+language. It contains a phrase <phrase dir="rtl">putatively written
+in a right-to-left language</phrase>, though in fact the phrase is
+in English too.</para>
+
+</chapter>
index 5101f1025be5dee53fe91b722866e0d77c3a8b86..10bcbeb739d42b90d03029af8870a5713f686b1e 100644 (file)
@@ -18,7 +18,7 @@ should expand to fill entire horizontal space.</para>
     <tgroup cols="3" colsep="1" rowsep="1" align="left">
       <colspec colname="cat" colwidth="2in"/>
       <colspec colname="issue" colwidth="2in"/>
-      <colspec colname="response" colwidth="4in*"/>
+      <colspec colname="response" colwidth="4in"/>
       <thead>
         <row>
           <entry>Category</entry>
index c9a697fc18c381e618cb432a8332086d5d1bfa96..d8a52aaa8c4208b741cb6fe2c8751094ff1e84d5 100644 (file)
@@ -12,7 +12,7 @@
 
 <programlisting><inlinemediaobject>
 <imageobject>
-<imagedata format="linespecific" fileref="tests/programlisting.002.xml"/>
+<imagedata format="linespecific" fileref="programlisting.002.xml"/>
 </imageobject>
 </inlinemediaobject></programlisting>
 
diff --git a/testdocs/tests/pubsnumber.xml b/testdocs/tests/pubsnumber.xml
new file mode 100644 (file)
index 0000000..b0b8422
--- /dev/null
@@ -0,0 +1,16 @@
+<?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="article">
+<articleinfo>
+<title>Unit Test: pubsnumber.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>
+<pubsnumber>12345</pubsnumber>
+</articleinfo>
+
+<para>This is an article test. It has a <sgmltag>pubsnumber</sgmltag>.</para>
+
+</article>
diff --git a/testdocs/tests/sgmltag.xml b/testdocs/tests/sgmltag.xml
new file mode 100644 (file)
index 0000000..6e99521
--- /dev/null
@@ -0,0 +1,30 @@
+<?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="article">
+<articleinfo>
+<title>Unit Test: sgmltag.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>There are several classes of “tag”:</para>
+
+<itemizedlist>
+<listitem><para><sgmltag class="attribute">attribute</sgmltag></para></listitem>
+<listitem><para><sgmltag class="attvalue">attvalue</sgmltag></para></listitem>
+<listitem><para><sgmltag class="element">element</sgmltag></para></listitem>
+<listitem><para><sgmltag class="emptytag">emptytag</sgmltag></para></listitem>
+<listitem><para><sgmltag class="endtag">endtag</sgmltag></para></listitem>
+<listitem><para><sgmltag class="genentity">genentity</sgmltag></para></listitem>
+<listitem><para><sgmltag class="numcharref">numcharref</sgmltag></para></listitem>
+<listitem><para><sgmltag class="paramentity">paramentity</sgmltag></para></listitem>
+<listitem><para><sgmltag class="pi">pi</sgmltag></para></listitem>
+<listitem><para><sgmltag class="sgmlcomment">sgmlcomment</sgmltag></para></listitem>
+<listitem><para><sgmltag class="starttag">starttag</sgmltag></para></listitem>
+<listitem><para><sgmltag class="xmlpi">xmlpi</sgmltag></para></listitem>
+</itemizedlist>
+
+</article>
diff --git a/testdocs/tests/table.019.xml b/testdocs/tests/table.019.xml
new file mode 100644 (file)
index 0000000..11ee140
--- /dev/null
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<article xmlns="http://docbook.org/ns/docbook" version="lillet">
+<info><title>Unit Test: table.006</title>
+
+<releaseinfo role="CVS">$Id$</releaseinfo>
+<author><personname><firstname>Norman</firstname><surname>Walsh</surname></personname><affiliation><address><email>ndw@nwalsh.com</email></address></affiliation></author>
+</info>
+
+<para>Tic Tac Toe (the perverse way, using colsep on colspec and rowsep on rows):</para>
+
+<informaltable frame="none">
+<tgroup cols="3">
+<colspec colnum="1" colsep="1"/>
+<colspec colnum="2" colsep="1"/>
+<tbody>
+<row rowsep="1">
+<entry>a foo</entry>
+<entry>a bar</entry>
+<entry>a baz</entry>
+</row>
+<row rowsep="1">
+<entry>b foo</entry>
+<entry>b bar</entry>
+<entry>b baz</entry>
+</row>
+<row>
+<entry>c foo</entry>
+<entry>c foo</entry>
+<entry>c baz</entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+
+</article>