Debian Codegraph @

init_templates/MAIN.db5-book.template

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?xml-model href="http://docbook.org/xml/5.0CR3/rng/docbookxi.rng"
3 schematypens="http://relaxng.org/ns/structure/1.0"?>
4 <!--
5 <?xml-model href="http://docbook.org/xml/5.1CR3/rng/docbook.rng"
6 schematypens="http://purl.oclc.org/dsdl/schematron"?>
7 -->
8 <book xml:id="book.template" xml:lang="en" version="5.0"
9 xmlns:xlink="http://www.w3.org/1999/xlink"
10 xmlns:xi="http://www.w3.org/2001/XInclude"
11 xmlns="http://docbook.org/ns/docbook">
12 <info>
13 <title>§§TITLE§§</title>
14 <subtitle>generated by DAPS</subtitle>
15 <releaseinfo>Version 0.1</releaseinfo>
16 <releaseinfo>Revision: 0</releaseinfo>
17 <date>§§DATE§§</date>
18 <legalnotice>
19 <para>
20 <link xlink:href="http://www.gnu.org/licenses/fdl-1.3-standalone.html">GNU Free Documentation License</link>
21 </para>
22 </legalnotice>
23 </info>
24 <chapter xml:id="cha.template.examples">
25 <title>Examples: the most commonly used DocBook XML constructs</title>
26 <info>
27 <abstract>
28 <para> You may use this file as a template. For a complete
29 DocBook reference, see
30 <citetitle>DocBook: The Definitive Guide</citetitle>
31 (<link xlink:href="http://www.docbook.org/tdg51/en/html/docbook.html"/>).
32 </para>
33 </abstract>
34 </info>
35
36 <para>
37 I am a paragraph in a chapter.
38 </para>
39 <sect1 xml:id="sec.template.examples.lists">
40 <title>Lists</title>
41 <para>
42 This section 1 showcases 3 types of lists.
43 </para>
44 <sect2 xml:id="sec.template.examples.lists.itemized">
45 <title>Itemized Lists</title>
46 <para>I am a paragraph in a section 2.</para>
47 <itemizedlist>
48 <title>Example Itemized List</title>
49 <listitem>
50 <para>
51 Listitem 1
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Listitem 2
57 </para>
58 </listitem>
59 </itemizedlist>
60 </sect2>
61 <sect2 xml:id="sec.template.examples.lists.ordered">
62 <title>Ordered Lists</title>
63 <orderedlist>
64 <title>Example Ordered List</title>
65 <listitem>
66 <para>
67 First item
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Second item
73 </para>
74 </listitem>
75 </orderedlist>
76 </sect2>
77 <sect2 xml:id="sec.template.examples.lists.variable">
78 <title>Variablelists</title>
79 <variablelist>
80 <title>Example Variablelist</title>
81 <varlistentry>
82 <term>Term 1</term>
83 <listitem>
84 <para>
85 Definition 1
86 </para>
87 </listitem>
88 </varlistentry>
89 <varlistentry>
90 <term>Term 2</term>
91 <listitem>
92 <para>
93 Definition 2
94 </para>
95 </listitem>
96 </varlistentry>
97 </variablelist>
98 </sect2>
99 </sect1>
100 <sect1 xml:id="sec.template.examples.table">
101 <title>Tables</title>
102 <para>This section 1 features a table with 4 columns and 3 rows:
103 </para>
104 <table>
105 <title>Example Table</title>
106 <tgroup cols="4">
107 <colspec colnum="1" colname="1" colwidth="25*"/>
108 <colspec colnum="2" colname="2" colwidth="25*"/>
109 <colspec colnum="3" colname="3" colwidth="25*"/>
110 <colspec colnum="4" colname="4" colwidth="25*"/>
111 <thead>
112 <row>
113 <entry><para>Col 1</para></entry>
114 <entry><para>Col 2</para></entry>
115 <entry><para>Col 3</para></entry>
116 <entry><para>Col 4</para></entry>
117 </row>
118 </thead>
119 <tbody>
120 <row>
121 <entry><para>Row 1, Cell 1</para></entry>
122 <entry><para>Row 1, Cell 2</para></entry>
123 <entry><para>Row 1, Cell 3</para></entry>
124 <entry><para>Row 1, Cell 4</para></entry>
125 </row>
126 <row>
127 <entry><para>Row 2, Cell 1</para></entry>
128 <entry><para>Row 2, Cell 2</para></entry>
129 <entry><para>Row 2, Cell 3</para></entry>
130 <entry><para>Row 2, Cell 4</para></entry>
131 </row>
132 </tbody>
133 </tgroup>
134 </table>
135 </sect1>
136 <sect1 xml:id="sec.template.examples.images">
137 <title>Images</title>
138 <para>
139 This section 1 shows two types of images: with and without a
140 caption.
141 </para>
142 <figure>
143 <title>Basketball Player</title>
144 <mediaobject>
145 <imageobject role="fo">
146 <imagedata fileref="example2.png" width="75%"/>
147 </imageobject>
148 <imageobject role="html">
149 <imagedata fileref="example2.png" width="75%"/>
150 </imageobject>
151 </mediaobject>
152 </figure>
153 <para>
154 And now an image without caption:
155 </para>
156 <informalfigure>
157 <mediaobject>
158 <imageobject role="fo">
159 <imagedata fileref="example1.png" width="75%"/>
160 </imageobject>
161 <imageobject role="html">
162 <imagedata fileref="example1.png" width="75%"/>
163 </imageobject>
164 </mediaobject>
165 </informalfigure>
166 </sect1>
167 </chapter>
168 </book>