]> granicus.if.org Git - docbook-dsssl/commitdiff
New tests
authorNorman Walsh <ndw@nwalsh.com>
Thu, 23 May 2002 21:58:11 +0000 (21:58 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 23 May 2002 21:58:11 +0000 (21:58 +0000)
testdocs/graphics/svg-001-fallback.png [new file with mode: 0644]
testdocs/graphics/svg-001.xml [new file with mode: 0644]
testdocs/tests/epigraph.001.xml [new file with mode: 0644]
testdocs/tests/qandaset.001.xml
testdocs/tests/qandaset.002.xml
testdocs/tests/svg.001.xml [new file with mode: 0644]
testdocs/tests/svg.002.xml [new file with mode: 0644]

diff --git a/testdocs/graphics/svg-001-fallback.png b/testdocs/graphics/svg-001-fallback.png
new file mode 100644 (file)
index 0000000..8419401
Binary files /dev/null and b/testdocs/graphics/svg-001-fallback.png differ
diff --git a/testdocs/graphics/svg-001.xml b/testdocs/graphics/svg-001.xml
new file mode 100644 (file)
index 0000000..c5c8349
--- /dev/null
@@ -0,0 +1,11 @@
+<svg:svg xmlns:svg="http://www.w3.org/2000/svg">
+  <svg:g transform="scale(0.5)">
+    <svg:polygon style="fill:red; stroke:blue; stroke-width:10"
+                 points="350, 75 379,161 469,161 397,215
+                         423,301 350,250 277,301 303,215
+                         231,161 321,161" />
+    <svg:polygon style="fill:lime; stroke:blue; stroke-width:10"
+                 points="850,75  958,137.5 958,262.5
+                         850,325 742,262.6 742,137.5"/>
+  </svg:g>
+</svg:svg>
diff --git a/testdocs/tests/epigraph.001.xml b/testdocs/tests/epigraph.001.xml
new file mode 100644 (file)
index 0000000..e022931
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<chapter>
+<chapterinfo>
+<title>Unit Test: article.001.xml</title>
+<releaseinfo role="CVS">$Id: article.001.xml,v 1.2 2002/04/18 22:15:39 nwalsh Exp $</releaseinfo>
+<authorgroup>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+<author><firstname>Jane</firstname><surname>Doe</surname></author>
+</authorgroup>
+</chapterinfo>
+<title>Unit Test: article.001.xml</title>
+<epigraph><attribution>H. W. Longfellow</attribution>
+<para>If we could read the secret history
+of our enemies, we should find in in each one's life sorrow and
+suffering enough to disarm all hostility.</para>
+</epigraph>
+
+<para>This is an epigraph test.</para>
+
+</chapter>
index 22d734731a50bc9852f2002f5e9b440cae579dc2..c217a25ba48b3605a7a75c728ab455470a998125 100644 (file)
 </author>
 </articleinfo>
 
+<para>What about <xref linkend="Two"/>?</para>
+
   <qandaset defaultlabel='number'>
     <?dbhtml table-summary="summary"?>
-    <qandaentry>
-      <question><para>Question one.</para></question>
-      <answer>
+    <qandaentry id="qa1">
+      <question id="q1"><para>Question one.</para></question>
+      <answer id="a1">
        <para>Answer one.
 See <xref linkend="faq-Two"/></para>
       </answer>
     </qandaentry>
 
-    <qandaentry>
+    <qandaentry id="Two">
       <question id="faq-Two"><para>Question two.</para></question>
-      <answer>
+      <answer id="faa-Two">
        <para>Answer two.</para>
       </answer>
     </qandaentry>
 
-    <qandaentry>
+    <qandaentry id="Twoc">
       <question id="faq-Twoc"><para>Question two.</para></question>
-      <answer>
+      <answer id="faa-Twoc">
        <orderedlist>
          <listitem><para>testing a list</para></listitem>
          <listitem><para>testing a list</para></listitem>
index 66bdd06437ca8e7f416a40365985ead60d25f8c1..8fea46f0048911f34fbbf269e38d51a536fb089a 100644 (file)
 
        <qandaset>
     <?dbhtml toc="0"?>
-         <qandaentry>
-           <question>
+         <qandaentry id="qa1">
+           <question id="q1">
              <para>Blah blah blah.</para>
            </question>
-         <answer>
+         <answer id="a1">
            <example>
              <title><filename
                  moreinfo="none">file.name</filename></title>
diff --git a/testdocs/tests/svg.001.xml b/testdocs/tests/svg.001.xml
new file mode 100644 (file)
index 0000000..74c1966
--- /dev/null
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook SVG Module V1.0beta2//EN"
+                         "http://www.oasis-open.org/docbook/xml/svg/1.0beta2/dbsvg.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: svg.001.xml</title>
+<releaseinfo role="CVS">$Id: article.001.xml,v 1.2 2002/04/18 22:15:39 nwalsh Exp $</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<para>This article contains an SVG diagram (inline).</para>
+
+<mediaobject>
+  <imageobject>
+    <svg:svg xmlns:svg="http://www.w3.org/2000/svg">
+      <svg:g transform="scale(0.5)">
+        <svg:polygon style="fill:red; stroke:blue; stroke-width:10"
+                     points="350, 75 379,161 469,161 397,215
+                             423,301 350,250 277,301 303,215
+                             231,161 321,161" />
+        <svg:polygon style="fill:lime; stroke:blue; stroke-width:10"
+                     points="850,75  958,137.5 958,262.5
+                             850,325 742,262.6 742,137.5"/>
+      </svg:g>
+    </svg:svg>
+  </imageobject>
+  <imageobject>
+    <imagedata
+      align="center"
+      fileref="graphics/svg-001-fallback.png"/>
+  </imageobject>
+  <textobject><phrase>Example SVG polygons</phrase></textobject>
+  <caption><para>Polygons</para></caption>
+</mediaobject>
+
+</article>
diff --git a/testdocs/tests/svg.002.xml b/testdocs/tests/svg.002.xml
new file mode 100644 (file)
index 0000000..7bbd480
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook SVG Module V1.0beta2//EN"
+                         "http://www.oasis-open.org/docbook/xml/svg/1.0beta2/dbsvg.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: svg.002.xml</title>
+<releaseinfo role="CVS">$Id: article.001.xml,v 1.2 2002/04/18 22:15:39 nwalsh Exp $</releaseinfo>
+<author><firstname>Norman</firstname><surname>Walsh</surname>
+        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<para>This article contains an SVG diagram (external).</para>
+
+<mediaobject>
+  <imageobject>
+    <imagedata
+      align="center"
+      format="SVG"
+      fileref="graphics/svg-001.xml"/>
+  </imageobject>
+  <imageobject>
+    <imagedata
+      align="center"
+      fileref="graphics/svg-001-fallback.png"/>
+  </imageobject>
+  <textobject><phrase>Example SVG polygons</phrase></textobject>
+  <caption><para>Polygons</para></caption>
+</mediaobject>
+
+</article>