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