]> granicus.if.org Git - docbook-dsssl/commitdiff
test whether xref uses titleabbrev
authorAdam Di Carlo <adicarlo@users.sourceforge.net>
Sat, 18 Jan 2003 06:59:21 +0000 (06:59 +0000)
committerAdam Di Carlo <adicarlo@users.sourceforge.net>
Sat, 18 Jan 2003 06:59:21 +0000 (06:59 +0000)
testdocs/tests/xref.003.xml [new file with mode: 0644]

diff --git a/testdocs/tests/xref.003.xml b/testdocs/tests/xref.003.xml
new file mode 100644 (file)
index 0000000..f23c879
--- /dev/null
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+<article id="article">
+<articleinfo>
+<title>Unit Test: xref.003.xml</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+<author><firstname>Adam</firstname><surname>Di Carlo</surname>
+        <affiliation><address><email>adam@onshored.com</email></address></affiliation>
+</author>
+    <titleabbrev>Unit 03</titleabbrev>
+</articleinfo>
+
+  <section>
+    <title>Xref test: titleabbrev</title>
+    <para>
+      We're testing that xref uses the <sgmltag>titleabbrev</sgmltag>
+      element where appropriate.
+    </para>
+    <para>
+      Article: <xref linkend="article"/>.
+    </para>
+    <para>
+      Section: <xref linkend="section"/>.
+    </para>
+    <para>
+      Figure: <xref linkend="figure"/>.
+    </para>
+    <para>
+      Example: <xref linkend="example"/>.
+    </para>
+    <para>
+      Table: <xref linkend="table"/>.
+    </para>
+    <!-- what about:
+    procedure, qandadiv, glossary, index, variablelist, etc. 
+    -->
+  </section>
+
+  <section id="section">
+    <title>Cross-reference targets</title>
+    <titleabbrev>Cross-ref targets</titleabbrev>
+
+    <para>
+      Targets for cross-reference tests.
+    </para>
+
+    <figure id="figure">
+      <title>Long Title for Figure</title>
+      <titleabbrev>Short Fig Title</titleabbrev>
+      <mediaobject>
+        <textobject>
+          <para>Bit of text</para>
+        </textobject>
+      </mediaobject>
+    </figure>
+
+    <example id="example">
+      <title>Long Title for Example</title>
+      <titleabbrev>Short Examp Title</titleabbrev>
+      <para>Substance of example</para>
+    </example>
+
+    <table id="table">
+      <title>Long Title for Table</title>
+      <titleabbrev>Short Table Title</titleabbrev>
+      <tgroup cols="1">
+        <tbody>
+          <row>
+            <entry>table cell</entry>
+          </row>
+        </tbody>
+      </tgroup>
+    </table>
+
+  </section>
+</article>