]> granicus.if.org Git - docbook-dsssl/commitdiff
New unit tests
authorNorman Walsh <ndw@nwalsh.com>
Thu, 22 Mar 2007 13:02:16 +0000 (13:02 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 22 Mar 2007 13:02:16 +0000 (13:02 +0000)
docbook/relaxng/docbook/tests/unit-tests/htmlinfo.xml [new file with mode: 0644]
docbook/relaxng/docbook/tests/unit-tests/rfe1682917.xml [new file with mode: 0644]

diff --git a/docbook/relaxng/docbook/tests/unit-tests/htmlinfo.xml b/docbook/relaxng/docbook/tests/unit-tests/htmlinfo.xml
new file mode 100644 (file)
index 0000000..f25c241
--- /dev/null
@@ -0,0 +1,26 @@
+<book xmlns="http://docbook.org/ns/docbook"
+      xmlns:xlink="http://www.w3.org/1999/xlink">
+<title>Sample book title</title>
+
+<chapter>
+<title>Sample chapter title</title>
+
+<para>This unit test contains an HTML <tag>table</tag> with an <tag>info</tag>.
+</para>
+
+<table>
+<info>
+<bibliomisc>Irrelevant</bibliomisc>
+</info>
+<caption>This is the HTML table <emphasis>title</emphasis></caption>
+<tr>
+<td>A1</td><td>A2</td>
+</tr>
+<tr>
+<td>B1</td><td>B2</td>
+</tr>
+</table>
+
+</chapter>
+
+</book>
diff --git a/docbook/relaxng/docbook/tests/unit-tests/rfe1682917.xml b/docbook/relaxng/docbook/tests/unit-tests/rfe1682917.xml
new file mode 100644 (file)
index 0000000..15fd10b
--- /dev/null
@@ -0,0 +1,31 @@
+<book xmlns="http://docbook.org/ns/docbook"
+      xmlns:xlink="http://www.w3.org/1999/xlink">
+<title>Sample book title</title>
+
+<chapter>
+<title>Sample chapter title</title>
+
+<para>This unit test contains examples with the width and pgwide attributes.
+They are optional and mutually exclusive.</para>
+
+<example pgwide="1">
+<title>Page wide example</title>
+<para>This example is page wide.</para>
+</example>
+
+<example width="80">
+<title>Eighty column example</title>
+<para>This example is 80 columns wide.</para>
+</example>
+
+<!-- this is an error -->
+<!--
+<example width="80" pgwide="0">
+<title>Broken example</title>
+<para>This example is 80 columns wide.</para>
+</example>
+-->
+
+</chapter>
+</book>
+