summaryrefslogtreecommitdiff
path: root/testautomation/xml
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-07-11 06:53:37 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-07-11 06:53:37 +0000
commit596c970e8634bfe1917b8caf03b3e3b21cb5333f (patch)
tree73755303e4e9695280b35164af169aaf5c50c31c /testautomation/xml
parentda0ad860d73ce24f1fd85f864874891e1ba12786 (diff)
INTEGRATION: CWS autotestfixes01 (1.1.2); FILE ADDED
2008/07/04 17:08:01 jsi 1.1.2.1: #i91336# Adding the modul xml to testautomation Issue number: Submitted by: Reviewed by:
Diffstat (limited to 'testautomation/xml')
-rwxr-xr-xtestautomation/xml/optional/input/docbook/link.001.xml36
-rwxr-xr-xtestautomation/xml/optional/input/docbook/literallayout.001.xml19
-rwxr-xr-xtestautomation/xml/optional/input/docbook/literallayout.002.xml21
-rwxr-xr-xtestautomation/xml/optional/input/docbook/literallayout.003.xml19
-rwxr-xr-xtestautomation/xml/optional/input/docbook/lot.001.xml56
-rwxr-xr-xtestautomation/xml/optional/input/docbook/mathml.001.xml19
-rwxr-xr-xtestautomation/xml/optional/input/docbook/methodsynopsis.001.xml55
-rwxr-xr-xtestautomation/xml/optional/input/docbook/note.001.xml18
-rwxr-xr-xtestautomation/xml/optional/input/docbook/olink.001.xml22
-rwxr-xr-xtestautomation/xml/optional/input/docbook/orderedlist.001.xml38
-rwxr-xr-xtestautomation/xml/optional/input/docbook/orderedlist.002.xml38
-rwxr-xr-xtestautomation/xml/optional/input/docbook/procedure.001.xml44
-rwxr-xr-xtestautomation/xml/optional/input/docbook/procedure.003.xml19
-rwxr-xr-xtestautomation/xml/optional/input/docbook/productionset.001.xml66
-rwxr-xr-xtestautomation/xml/optional/input/docbook/productionset.002.xml27
-rwxr-xr-xtestautomation/xml/optional/input/docbook/productionset.003.xml30
16 files changed, 527 insertions, 0 deletions
diff --git a/testautomation/xml/optional/input/docbook/link.001.xml b/testautomation/xml/optional/input/docbook/link.001.xml
new file mode 100755
index 000000000000..1a276bce0070
--- /dev/null
+++ b/testautomation/xml/optional/input/docbook/link.001.xml
@@ -0,0 +1,36 @@
+<?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: link.001</title>
+<releaseinfo role="CVS">$Id: link.001.xml,v 1.2 2008-07-11 07:50:54 rt Exp $</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+ <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<section id="section"><title>Section Title</title>
+
+<para>A <link linkend="section">self-referential link</link>.</para>
+
+<para>A link without content: <link linkend="section2"/>.</para>
+
+<para>A link without content, but with an xreflabel:
+<link linkend="section2" xreflabel="stb"/>.</para>
+
+<para>A link with content and an xreflabel:
+<link linkend="section2" xreflabel="stb">here</link>.</para>
+
+</section>
+
+<section id="section2">
+<title>A Very Long Section Title That I Don't Want To Use For My XRef</title>
+<titleabbrev id="stb">Long Section Title</titleabbrev>
+
+<para>Some text with a <link linkend="section">link back</link> to the
+first section.</para>
+
+</section>
+
+</article>
diff --git a/testautomation/xml/optional/input/docbook/literallayout.001.xml b/testautomation/xml/optional/input/docbook/literallayout.001.xml
new file mode 100755
index 000000000000..1fe06d5a197f
--- /dev/null
+++ b/testautomation/xml/optional/input/docbook/literallayout.001.xml
@@ -0,0 +1,19 @@
+<?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: literallayout.001</title>
+<releaseinfo role="CVS">$Id: literallayout.001.xml,v 1.2 2008-07-11 07:51:05 rt Exp $</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+ <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<literallayout>LiteralLayout: 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.</literallayout>
+
+</article>
diff --git a/testautomation/xml/optional/input/docbook/literallayout.002.xml b/testautomation/xml/optional/input/docbook/literallayout.002.xml
new file mode 100755
index 000000000000..008f37794fc8
--- /dev/null
+++ b/testautomation/xml/optional/input/docbook/literallayout.002.xml
@@ -0,0 +1,21 @@
+<?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: literallayout.002</title>
+<releaseinfo role="CVS">$Id: literallayout.002.xml,v 1.2 2008-07-11 07:51:14 rt Exp $</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+ <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<literallayout>LiteralLayout: This is a test
+ This is a test with <emphasis> embedded
+ markup</emphasis>; but still
+ Only a test.
+Had this been a real emegency,
+ We would have fled in terror
+And you would not have been informed.</literallayout>
+
+</article>
diff --git a/testautomation/xml/optional/input/docbook/literallayout.003.xml b/testautomation/xml/optional/input/docbook/literallayout.003.xml
new file mode 100755
index 000000000000..9901e3bd4f8b
--- /dev/null
+++ b/testautomation/xml/optional/input/docbook/literallayout.003.xml
@@ -0,0 +1,19 @@
+<?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: literallayout.003</title>
+<releaseinfo role="CVS">$Id: literallayout.003.xml,v 1.2 2008-07-11 07:51:25 rt Exp $</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+ <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<literallayout class="monospaced">LiteralLayout(monospaced): 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.</literallayout>
+
+</article>
diff --git a/testautomation/xml/optional/input/docbook/lot.001.xml b/testautomation/xml/optional/input/docbook/lot.001.xml
new file mode 100755
index 000000000000..ccf6220aedf4
--- /dev/null
+++ b/testautomation/xml/optional/input/docbook/lot.001.xml
@@ -0,0 +1,56 @@
+<?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" [
+<!ENTITY blah "<para>Blah blah blah blah. Blah blah blah blah. Blah blah blah blah.
+Blah blah blah blah blah blah blah blah. Blah blah blah blah.
+</para>">
+]>
+<book id="book">
+<bookinfo>
+<title>Unit Test: lot.001</title>
+<releaseinfo role="CVS">$Id: lot.001.xml,v 1.2 2008-07-11 07:51:35 rt Exp $
+</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+ <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</bookinfo>
+
+<chapter id="chap1"><title>First Chapter</title>
+
+&blah;
+
+<figure id="figduck1"><title>A Test Figure</title>
+<programlisting>
+A figure. Just to test the numeration.</programlisting>
+</figure>
+
+<section><title>First Section</title>
+
+&blah;
+
+</section>
+</chapter>
+
+<chapter id="chap2"><title>Second Chapter</title>
+
+&blah;
+
+<figure id="figduck2"><title>A Test Figure</title>
+<programlisting>
+A figure. Just to test the numeration.</programlisting>
+</figure>
+
+<sidebar><title>A Sidebar</title>
+
+&blah;
+
+<figure id="figduck3"><title>A Test Figure</title>
+<programlisting>
+A figure. Just to test the numeration.</programlisting>
+</figure>
+
+&blah;
+
+</sidebar>
+</chapter>
+</book>
diff --git a/testautomation/xml/optional/input/docbook/mathml.001.xml b/testautomation/xml/optional/input/docbook/mathml.001.xml
new file mode 100755
index 000000000000..8bb633fe820d
--- /dev/null
+++ b/testautomation/xml/optional/input/docbook/mathml.001.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook MathML Module V1.0//EN"
+ "http://www.oasis-open.org/docbook/xml/mathml/1.0/dbmathml.dtd">
+
+<article id="article">
+<articleinfo>
+<title>Unit Test: mathml.001.xml</title>
+<releaseinfo role="CVS">$Id: mathml.001.xml,v 1.2 2008-07-11 07:51:46 rt Exp $</releaseinfo>
+</articleinfo>
+
+<para>The following equation is in MathML:</para>
+
+<informalequation>
+ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML">
+ <mml:apply><mml:divide/></mml:apply>
+ </mml:math>
+</informalequation>
+
+</article>
diff --git a/testautomation/xml/optional/input/docbook/methodsynopsis.001.xml b/testautomation/xml/optional/input/docbook/methodsynopsis.001.xml
new file mode 100755
index 000000000000..2ec8cfa227a0
--- /dev/null
+++ b/testautomation/xml/optional/input/docbook/methodsynopsis.001.xml
@@ -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 id="article">
+<articleinfo>
+<title>Unit Test: methodsynopsis.001.xml</title>
+<releaseinfo role="CVS">$Id: methodsynopsis.001.xml,v 1.2 2008-07-11 07:51:56 rt Exp $</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+ <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<para>Here's a <sgmltag>methodsynopsis</sgmltag> in a <sgmltag>classsynopsis</sgmltag>:
+</para>
+
+<classsynopsis>
+<ooclass>
+<classname>Foo</classname>
+</ooclass>
+<methodsynopsis>
+<modifier>public</modifier>
+<modifier>static</modifier>
+<type>double</type>
+<methodname>getQuote</methodname>
+<methodparam>
+<type>String</type>
+<parameter>symbol</parameter>
+</methodparam>
+<methodparam>
+<type>double</type>
+<parameter>price</parameter>
+</methodparam>
+</methodsynopsis>
+</classsynopsis>
+
+<para>Here's a <sgmltag>methodsynopsis</sgmltag>
+<emphasis>outside</emphasis> a <sgmltag>classsynopsis</sgmltag>:
+</para>
+
+<methodsynopsis>
+<modifier>public</modifier>
+<modifier>static</modifier>
+<type>double</type>
+<methodname>getQuote</methodname>
+<methodparam>
+<type>String</type>
+<parameter>symbol</parameter>
+</methodparam>
+<methodparam>
+<type>double</type>
+<parameter>price</parameter>
+</methodparam>
+</methodsynopsis>
+
+</article>
diff --git a/testautomation/xml/optional/input/docbook/note.001.xml b/testautomation/xml/optional/input/docbook/note.001.xml
new file mode 100755
index 000000000000..214c5466b175
--- /dev/null
+++ b/testautomation/xml/optional/input/docbook/note.001.xml
@@ -0,0 +1,18 @@
+<?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: note.001</title>
+<releaseinfo role="CVS">$Id: note.001.xml,v 1.2 2008-07-11 07:52:06 rt Exp $</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+ <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<note>
+<title>Who can do this</title>
+<para>All operators</para>
+</note>
+
+</article>
diff --git a/testautomation/xml/optional/input/docbook/olink.001.xml b/testautomation/xml/optional/input/docbook/olink.001.xml
new file mode 100755
index 000000000000..e022911ef1fc
--- /dev/null
+++ b/testautomation/xml/optional/input/docbook/olink.001.xml
@@ -0,0 +1,22 @@
+<?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" [
+<!ENTITY olink.001.xml SYSTEM "olink.001.xml" NDATA SGML>
+]>
+<article>
+<articleinfo>
+<title>Unit Test: olink.001</title>
+<releaseinfo role="CVS">$Id: olink.001.xml,v 1.2 2008-07-11 07:52:21 rt Exp $</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+ <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+<modespec id="olink">file:///sourceforge/projects/docbook/testdocs/tests/olink.001.html</modespec>
+</articleinfo>
+
+<para>This is an <olink targetdocent="olink.001.xml" linkmode="olink">OLink</olink>
+with a linkmode. (It is self-referential).</para>
+
+<para>This is an <olink targetdocent="olink.001.xml">OLink</olink>
+without a linkmode. (It is also self-referential).</para>
+
+</article>
diff --git a/testautomation/xml/optional/input/docbook/orderedlist.001.xml b/testautomation/xml/optional/input/docbook/orderedlist.001.xml
new file mode 100755
index 000000000000..c224975683f0
--- /dev/null
+++ b/testautomation/xml/optional/input/docbook/orderedlist.001.xml
@@ -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: orderedlist.001</title>
+<releaseinfo role="CVS">$Id: orderedlist.001.xml,v 1.2 2008-07-11 07:52:30 rt Exp $</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+ <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<orderedlist>
+ <listitem><para>Level 1</para>
+ <orderedlist>
+ <listitem><para>Level 2</para>
+ <orderedlist>
+ <listitem id="someOLI"><para>Level 3</para>
+ <orderedlist>
+ <listitem><para>Level 4</para>
+ <orderedlist>
+ <listitem><para>Level 5</para>
+ <orderedlist>
+ <listitem override="13"><para>Level 6, override=13</para>
+ </listitem>
+ </orderedlist>
+ </listitem>
+ </orderedlist>
+ </listitem>
+ </orderedlist>
+ </listitem>
+ </orderedlist>
+ </listitem>
+ </orderedlist>
+</listitem>
+</orderedlist>
+
+</article>
diff --git a/testautomation/xml/optional/input/docbook/orderedlist.002.xml b/testautomation/xml/optional/input/docbook/orderedlist.002.xml
new file mode 100755
index 000000000000..47715b2761e3
--- /dev/null
+++ b/testautomation/xml/optional/input/docbook/orderedlist.002.xml
@@ -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: orderedlist.002</title>
+<releaseinfo role="CVS">$Id: orderedlist.002.xml,v 1.2 2008-07-11 07:52:41 rt Exp $</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+ <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<orderedlist numeration="loweralpha">
+ <listitem><para>Level 1, numeration="loweralpha"</para>
+ <orderedlist>
+ <listitem><para>Level 2</para>
+ <orderedlist>
+ <listitem><para>Level 3</para>
+ <orderedlist>
+ <listitem><para>Level 4</para>
+ <orderedlist>
+ <listitem><para>Level 5</para>
+ <orderedlist>
+ <listitem><para>Level 6</para>
+ </listitem>
+ </orderedlist>
+ </listitem>
+ </orderedlist>
+ </listitem>
+ </orderedlist>
+ </listitem>
+ </orderedlist>
+ </listitem>
+ </orderedlist>
+</listitem>
+</orderedlist>
+
+</article>
diff --git a/testautomation/xml/optional/input/docbook/procedure.001.xml b/testautomation/xml/optional/input/docbook/procedure.001.xml
new file mode 100755
index 000000000000..db3ecd0a2859
--- /dev/null
+++ b/testautomation/xml/optional/input/docbook/procedure.001.xml
@@ -0,0 +1,44 @@
+<?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: procedure.001</title>
+<releaseinfo role="CVS">$Id: procedure.001.xml,v 1.2 2008-07-11 07:52:51 rt Exp $</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+ <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<procedure id="proc"><title>Procedure Title</title>
+<step><para>Press MENUS.</para>
+</step>
+<step id="step-x"><para>Press MENUS.</para>
+</step>
+<step><para>Press MENUS.</para>
+</step>
+<step><para>Press MENUS.</para>
+</step>
+<step><para>Select SETUP.</para>
+<substeps>
+<step><para>Should be an <quote>a</quote></para>
+</step>
+<step id="step-y"><para>Should be a <quote>b</quote></para>
+</step>
+<step><para>Should be a <quote>c</quote></para>
+</step>
+<step><para>Should be a <quote>d</quote></para>
+</step>
+<step><para>should be an <quote>e</quote></para>
+<substeps>
+<step><para>should be an <quote>i</quote></para>
+</step>
+<step id="step-z"><para>should be an <quote>ii</quote></para>
+</step>
+</substeps>
+</step>
+</substeps>
+</step>
+</procedure>
+
+</article>
diff --git a/testautomation/xml/optional/input/docbook/procedure.003.xml b/testautomation/xml/optional/input/docbook/procedure.003.xml
new file mode 100755
index 000000000000..b8fb8e46c724
--- /dev/null
+++ b/testautomation/xml/optional/input/docbook/procedure.003.xml
@@ -0,0 +1,19 @@
+<?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: procedure.003</title>
+<releaseinfo role="CVS">$Id: procedure.003.xml,v 1.2 2008-07-11 07:53:05 rt Exp $</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>One step?</para>
+</step>
+</procedure>
+
+</article>
diff --git a/testautomation/xml/optional/input/docbook/productionset.001.xml b/testautomation/xml/optional/input/docbook/productionset.001.xml
new file mode 100755
index 000000000000..1be211186159
--- /dev/null
+++ b/testautomation/xml/optional/input/docbook/productionset.001.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook EBNF Module V1.0//EN"
+ "http://www.oasis-open.org/docbook/xml/ebnf/1.0/dbebnf.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: productionset.001</title>
+<releaseinfo role="CVS">$Id: productionset.001.xml,v 1.2 2008-07-11 07:53:15 rt Exp $</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+ <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<productionset><title>Arithemetic Expressions</title>
+<production id="ebnf.expression">
+ <lhs>Expression</lhs>
+ <rhs><nonterminal def="#ebnf.arith">ArithExpression</nonterminal> |
+ <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
+ <lineannotation>Does this grammar actually get precedence right?
+ </lineannotation>
+ </rhs>
+</production>
+<production id="ebnf.arith">
+ <lhs>ArithExpression</lhs>
+ <rhs><nonterminal def="#ebnf.expression">Expression</nonterminal>
+ '+'
+ <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
+ </rhs>
+<!--
+ <rhs><nonterminal def="#ebnf.expression">Expression</nonterminal>
+ '-'
+ <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
+ </rhs>
+-->
+</production>
+<production id="ebnf.mult">
+ <lhs>MultExpression</lhs>
+ <rhs><nonterminal def="#ebnf.mult">MultExpression</nonterminal>
+ '*'
+ <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
+ </rhs>
+<!--
+ <rhs>
+ <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
+ '/'
+ <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
+ </rhs>
+-->
+ <constraint linkend="div0"/>
+<!--
+ <rhs>
+ <nonterminal def="#ebnf.number">Number</nonterminal>
+ </rhs>
+-->
+</production>
+<production id="ebnf.number">
+ <lhs>Number</lhs>
+ <rhs>[0-9]+</rhs>
+</production>
+</productionset>
+
+<constraintdef id="div0" role="Err">
+<title>Division by Zero</title>
+<para>Division by zero is an error.</para>
+</constraintdef>
+
+</article>
diff --git a/testautomation/xml/optional/input/docbook/productionset.002.xml b/testautomation/xml/optional/input/docbook/productionset.002.xml
new file mode 100755
index 000000000000..c526639a7f12
--- /dev/null
+++ b/testautomation/xml/optional/input/docbook/productionset.002.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook EBNF Module V1.0//EN"
+ "http://www.oasis-open.org/docbook/xml/ebnf/1.0/dbebnf.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: productionset.002</title>
+<releaseinfo role="CVS">$Id: productionset.002.xml,v 1.2 2008-07-11 07:53:26 rt Exp $</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+ <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<productionset><title>Character Range</title>
+<production id="NT-Char">
+<lhs>Char</lhs>
+<rhs>#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD]
+<!-- The above line break in the source file has nothing to do with the
+line breaks in the output. -->
+| [#x10000-#x10FFFF]
+<lineannotation>any Unicode character, excluding the surrogate
+blocks, FFFE, and FFFF.
+</lineannotation>
+</rhs>
+</production>
+</productionset>
+
+</article>
diff --git a/testautomation/xml/optional/input/docbook/productionset.003.xml b/testautomation/xml/optional/input/docbook/productionset.003.xml
new file mode 100755
index 000000000000..ac54f518c1b7
--- /dev/null
+++ b/testautomation/xml/optional/input/docbook/productionset.003.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook EBNF Module V1.0//EN"
+ "http://www.oasis-open.org/docbook/xml/ebnf/1.0/dbebnf.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: productionset.003</title>
+<releaseinfo role="CVS">$Id: productionset.003.xml,v 1.2 2008-07-11 07:53:37 rt Exp $</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+ <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<productionset><title>Standalone Document Declaration</title>
+<production id="NT-SDDecl">
+<lhs>SDDecl</lhs>
+<rhs><nonterminal def="#NT-S">S</nonterminal> 'standalone' <nonterminal def="#NT-Eq">Eq</nonterminal>
+<!-- The above line break in the source file has nothing to do with the
+line breaks in the output. -->
+(("'" ('yes' | 'no') "'") | ('"' ('yes' | 'no') '"'))
+</rhs>
+<constraint linkend="check-rmd"/>
+</production>
+</productionset>
+
+<constraintdef id="check-rmd" role="VC">
+<title>Standalone Document Declaration</title>
+<para>Some description...</para>
+</constraintdef>
+
+</article>