|
| 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 id='book01'><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 | +<listitem><para>A link to an |
| 22 | +<sgmltag>cmdsynopsis</sgmltag> element: <xref linkend="cmd01"/>. |
| 23 | +</para></listitem> |
| 24 | +<listitem><para>A link to an |
| 25 | +<sgmltag>funcsynopsis</sgmltag> element: <xref linkend="func01"/>. |
| 26 | +</para></listitem> |
| 27 | +<listitem><para>A link to a |
| 28 | +<sgmltag>figure</sgmltag> element: <xref linkend="fig01"/>. |
| 29 | +</para></listitem> |
| 30 | +<listitem><para>A link to a |
| 31 | +<sgmltag>table</sgmltag> element: <xref linkend="table01"/>. |
| 32 | +</para></listitem> |
| 33 | +<listitem><para>A link to a |
| 34 | +<sgmltag>part</sgmltag> element: <xref linkend="part01"/>. |
| 35 | +</para></listitem> |
| 36 | +<listitem><para>A link to a |
| 37 | +<sgmltag>book</sgmltag> element: <xref linkend="book01"/>. |
| 38 | +</para></listitem> |
| 39 | +</itemizedlist> |
| 40 | +</chapter> |
| 41 | + |
| 42 | +<chapter id="ch02"> |
| 43 | + <title>The Second Chapter</title> |
| 44 | + <para>Some content here</para> |
| 45 | +</chapter> |
| 46 | + |
| 47 | +<part id="part01"> |
| 48 | + <title>Later Part</title> |
| 49 | + |
| 50 | +<chapter id="ch03" xreflabel="Chapter the Third"> |
| 51 | + <title>The Third Chapter</title> |
| 52 | + <para>Some content here</para> |
| 53 | +</chapter> |
| 54 | + |
| 55 | +<chapter id="ch04"> |
| 56 | + <title>The Fourth Chapter</title> |
| 57 | + <titleabbrev id="ch04short">Chapter 4</titleabbrev> |
| 58 | + <para>Some content here</para> |
| 59 | + |
| 60 | +<cmdsynopsis id="cmd01"> |
| 61 | + <command>chgrp</command> |
| 62 | + <arg>-R |
| 63 | + <group> |
| 64 | + <arg>-H</arg> |
| 65 | + <arg>-L</arg> |
| 66 | + <arg>-P</arg> |
| 67 | + </group> |
| 68 | + </arg> |
| 69 | + <arg>-f</arg> |
| 70 | + <arg choice='plain'><replaceable>group</replaceable></arg> |
| 71 | + <arg rep='repeat' choice='plain'><replaceable>file</replaceable></arg> |
| 72 | +</cmdsynopsis> |
| 73 | + |
| 74 | + |
| 75 | +<funcsynopsis id="func01"> |
| 76 | +<funcprototype> |
| 77 | +<funcdef>int <function>max</function></funcdef> |
| 78 | +<paramdef>int <parameter>int1</parameter></paramdef> |
| 79 | +<paramdef>int <parameter>int2</parameter></paramdef> |
| 80 | +</funcprototype> |
| 81 | +</funcsynopsis> |
| 82 | + |
| 83 | +<figure id="fig01"><title>The Pythagorean Theorem Illustrated</title> |
| 84 | +<mediaobject> |
| 85 | + <imageobject> |
| 86 | + <imagedata fileref="figures/pythag.png"/> |
| 87 | + </imageobject> |
| 88 | + <textobject><phrase>An illustration of the Pythagorean Theorem</phrase></textobject> |
| 89 | +</mediaobject> |
| 90 | +</figure> |
| 91 | + |
| 92 | +<table id="table01" frame="all" rowsep="1" colsep="1"> |
| 93 | + <title>Supported features by version</title> |
| 94 | + <tgroup cols="2"> |
| 95 | + <colspec colname="col_1" colwidth="50*"/> |
| 96 | + <colspec colname="col_2" colwidth="50*"/> |
| 97 | + <thead> |
| 98 | + <row> |
| 99 | + <entry>Version</entry> |
| 100 | + <entry>Feat</entry> |
| 101 | + </row> |
| 102 | + </thead> |
| 103 | + <tbody> |
| 104 | + <row> |
| 105 | + <entry>Free</entry> |
| 106 | + <entry>no</entry> |
| 107 | + </row> |
| 108 | + </tbody> |
| 109 | + </tgroup> |
| 110 | +</table> |
| 111 | + |
| 112 | +</chapter> |
| 113 | +</part> |
| 114 | +</book> |
0 commit comments