| 1 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" |
| 2 | "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> |
| 3 | <book><title>An Example Book</title> |
| 4 | <chapter id="ch01"><title>XRef Samples</title> |
| 5 | <para> |
| 6 | This paragraph demonstrates several features of |
| 7 | <sgmltag>XRef</sgmltag>. |
| 8 | </para> |
| 9 | <itemizedlist> |
| 10 | <listitem><para>A straight link generates the |
| 11 | cross-reference text: <xref linkend="ch02"/>. |
| 12 | </para></listitem> |
| 13 | <listitem><para>A link to an element with an |
| 14 | <sgmltag class="attribute">XRefLabel</sgmltag>: |
| 15 | <xref linkend="ch03"/>. |
| 16 | </para></listitem> |
| 17 | <listitem><para>A link with an |
| 18 | <sgmltag class="attribute">EndTerm</sgmltag>: |
| 19 | <xref linkend="ch04" endterm="ch04short"/>. |
| 20 | </para></listitem> |
| 21 | </itemizedlist> |
| 22 | </chapter> |
| 23 | |
| 24 | <chapter id="ch02"> |
| 25 | <title>The Second Chapter</title> |
| 26 | <para>Some content here</para> |
| 27 | </chapter> |
| 28 | |
| 29 | <chapter id="ch03" xreflabel="Chapter the Third"> |
| 30 | <title>The Third Chapter</title> |
| 31 | <para>Some content here</para> |
| 32 | </chapter> |
| 33 | |
| 34 | <chapter id="ch04"> |
| 35 | <title>The Fourth Chapter</title> |
| 36 | <titleabbrev id="ch04short">Chapter 4</titleabbrev> |
| 37 | <para>Some content here</para> |
| 38 | </chapter> |
| 39 | </book> |