]> granicus.if.org Git - docbook-dsssl/commitdiff
New test cases
authorNorman Walsh <ndw@nwalsh.com>
Wed, 17 Jul 2002 17:22:10 +0000 (17:22 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 17 Jul 2002 17:22:10 +0000 (17:22 +0000)
testdocs/tests/blockquote.001.xml
testdocs/tests/bridgehead.001.xml
testdocs/tests/cmdsynopsis.001.xml [new file with mode: 0644]
testdocs/tests/equation.004.xml [new file with mode: 0644]
testdocs/tests/glossary.002.data.xml [new file with mode: 0644]
testdocs/tests/glossary.002.xml [new file with mode: 0644]
testdocs/tests/literallayout.002.xml
testdocs/tests/sidebar.001.xml [new file with mode: 0644]

index a4d4ee02f177afc04c9f534aa1a8eabed802c9ba..36b522da35a77039e9fc5b81c0d040374d237655 100644 (file)
@@ -32,4 +32,8 @@ things towards making a man's fortune, next to interest and opportunity.</para>
 
 This line of text occurs after the quote, but inside the same para.</para>
 
+<blockquote><title>With A Title</title>
+<para>This block quote has a title.</para>
+</blockquote>
+
 </article>
index e38be06be05e8d4793092c8408eadb7225ce4509..a792d29ec5821b28b57c1c3e4fa094dc4b785e7b 100644 (file)
 
 <para>A test paragraph.</para>
 
+<para>This test para encourages you to see <xref linkend="bh"/>.</para>
+
 <sect1>
   <title>sect1 title</title>
   <subtitle>sect1 subtitle</subtitle>
 
   <para>This is a test paragraph.</para>
 
-  <bridgehead renderas="sect1">This is a sect1 bridgehead</bridgehead>
+  <bridgehead id="bh" renderas="sect1">This is a sect1 bridgehead</bridgehead>
 
   <para>This is a test paragraph.</para>
 
diff --git a/testdocs/tests/cmdsynopsis.001.xml b/testdocs/tests/cmdsynopsis.001.xml
new file mode 100644 (file)
index 0000000..1090893
--- /dev/null
@@ -0,0 +1,90 @@
+<?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: cmdsynopsis.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>
+
+<refentry id="minimal">
+<refnamediv>
+<refname>cccp</refname>
+<refpurpose>The C++ preprocessor</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<cmdsynopsis>
+  <command>cccp</command>
+  <arg>-$</arg>
+  <arg>-C</arg>
+  <arg rep='repeat'>-D<replaceable>name</replaceable>
+       <arg>=<replaceable>definition</replaceable></arg></arg>
+  <arg>-dD</arg>
+  <arg>-dM</arg>
+  <sbr/>
+  <arg rep='repeat'>-I <replaceable>directory</replaceable></arg>
+  <arg>-H</arg>
+  <arg>-I-</arg>
+  <arg rep='repeat'>-imacros <replaceable>file</replaceable></arg>
+  <sbr/>
+  <arg rep='repeat'>-include <replaceable>file</replaceable></arg>
+  <group>
+    <synopfragmentref linkend="langs">languages</synopfragmentref>
+  </group>
+  <arg>-lint</arg>
+  <sbr/>
+  <group>
+    <arg>-M</arg>
+    <arg>-MD</arg>
+    <arg>-MM</arg>
+    <arg>-MMD</arg>
+  </group>
+  <arg>-nostdinc</arg>
+  <arg>-P</arg>
+  <arg>-pedantic</arg>
+  <sbr/>
+  <arg>-pedantic-errors</arg>
+  <arg>-trigraphs</arg>
+  <arg>-U<replaceable>name</replaceable></arg>
+  <sbr/>
+  <arg>-undef</arg>
+  <arg choice="plain"><synopfragmentref linkend="warn">warnings
+    </synopfragmentref></arg>
+  <group choice='req'>
+    <arg><replaceable>infile</replaceable></arg>
+    <arg>-</arg>
+  </group>
+  <group choice='req'>
+    <arg><replaceable>outfile</replaceable></arg>
+    <arg>-</arg>
+  </group>
+
+  <synopfragment id="langs">
+    <group choice="plain">
+      <arg>-lang-c</arg>
+      <arg>-lang-c++</arg>
+      <arg>-lang-objc</arg>
+    </group>
+  </synopfragment>
+
+  <synopfragment id="warn">
+    <arg>-Wtrigraphs</arg>
+    <arg>-Wcomment</arg>
+    <arg>-Wall</arg>
+    <arg>-Wtraditional</arg>
+  </synopfragment>
+
+</cmdsynopsis>
+</refsynopsisdiv>
+
+<refsect1>
+<title>Description</title>
+<para>This is a dummy description.</para>
+</refsect1>
+</refentry>
+
+</article>
diff --git a/testdocs/tests/equation.004.xml b/testdocs/tests/equation.004.xml
new file mode 100644 (file)
index 0000000..3776733
--- /dev/null
@@ -0,0 +1,68 @@
+<?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: equation.004</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>Equations</title>
+
+<para>blah blah blah.</para>
+
+<equation><title>First Equation</title>
+<mediaobject>
+<imageobject>
+<imagedata fileref="emc2.png"/>
+</imageobject>
+<textobject>
+<phrase>e=mc^2</phrase>
+</textobject>
+</mediaobject>
+</equation>
+
+<para>blah blah blah.</para>
+
+<equation><!-- equation with no title: don't do this; use informalequation -->
+<mediaobject>
+<imageobject>
+<imagedata fileref="emc2.png"/>
+</imageobject>
+<textobject>
+<phrase>e=mc^2</phrase>
+</textobject>
+</mediaobject>
+</equation>
+
+<para>blah blah blah.</para>
+
+<equation id="eq2"><title>Second Equation</title>
+<mediaobject>
+<imageobject>
+<imagedata fileref="emc2.png"/>
+</imageobject>
+<textobject>
+<phrase>e=mc^2</phrase>
+</textobject>
+</mediaobject>
+</equation>
+
+<figure id="fig1"><title>A Figure</title>
+<mediaobject>
+<imageobject>
+<imagedata fileref="emc2.png"/>
+</imageobject>
+<textobject>
+<phrase>e=mc^2</phrase>
+</textobject>
+</mediaobject>
+</figure>
+
+</chapter>
+
+</book>
diff --git a/testdocs/tests/glossary.002.data.xml b/testdocs/tests/glossary.002.data.xml
new file mode 100644 (file)
index 0000000..c993cb4
--- /dev/null
@@ -0,0 +1,18 @@
+<?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>
+<glossentry>
+<glossterm>gloss-1</glossterm>
+<glossdef><para>A description.</para>
+<glossseealso>gloss-2</glossseealso>
+</glossdef>
+</glossentry>
+
+<glossentry>
+<glossterm>gloss-2</glossterm>
+<glossdef><para>A description.</para>
+</glossdef>
+</glossentry>
+
+</glossary>
diff --git a/testdocs/tests/glossary.002.xml b/testdocs/tests/glossary.002.xml
new file mode 100644 (file)
index 0000000..b807c4e
--- /dev/null
@@ -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: glossary.002</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+</articleinfo>
+
+<para>This test tests the <parameter>glossary.collection</parameter> machinery.</para>
+
+<para>Referencing <firstterm>gloss-1</firstterm>.</para>
+
+<glossary role="auto">
+<remark>make sure <glossterm>gloss-2</glossterm> is referenced</remark>
+<glossentry><glossterm>irrelevant</glossterm>
+<glossdef><para/></glossdef>
+</glossentry>
+</glossary>
+
+</article>
index f5a50e7d2f7bb65fa29b88f67837993cc9805cdc..85388e64f57a1fc67aeb856c41b0bcf6f1b2f809 100644 (file)
@@ -10,7 +10,7 @@
 </author>
 </articleinfo>
 
-<literallayout>LiteralLayout: This is a test
+<literallayout><ulink url="http://docbook.org/tdg/en/html/literallayout.html">LiteralLayout</ulink>: This is a test
     This is a test with <emphasis>    embedded
   markup</emphasis>; but still
   Only a test.
diff --git a/testdocs/tests/sidebar.001.xml b/testdocs/tests/sidebar.001.xml
new file mode 100644 (file)
index 0000000..a58a931
--- /dev/null
@@ -0,0 +1,48 @@
+<?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: sidebar.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 sidebar test.</para>
+
+<para>Here is some content. This is content. This is content. This is content.
+This is content. This is content. This is content. This is content.
+This is content. This is content. This is content. This is content.
+This is content. This is content. This is content. This is content.
+</para>
+
+<para>This is content. This is content. This is content.
+This is content. This is content. This is content. This is content.
+This is content. This is content. This is content. This is content.
+This is content. This is content. This is content. This is content.
+</para>
+
+<sidebar>
+<title>Sidebar</title>
+<para>Here is some sidebar content. This is content. This is content. This is content.
+This is content. This is content. This is content. This is content.
+This is content. This is content. This is content. This is content.
+This is content. This is content. This is content. This is content.
+</para>
+
+<para>This is content. This is content. This is content.
+This is content. This is content. This is content. This is content.
+This is content. This is content. This is content. This is content.
+This is content. This is content. This is content. This is content.
+</para>
+</sidebar>
+
+<para>Back into the main flow. This is content. This is content. This is content.
+This is content. This is content. This is content. This is content.
+This is content. This is content. This is content. This is content.
+This is content. This is content. This is content. This is content.
+</para>
+
+</article>