File: ch00.xml

package info (click to toggle)
docbook-defguide 2.0.17%2Bsvn9912-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 93,428 kB
  • ctags: 299
  • sloc: xml: 396,482; perl: 4,471; python: 879; makefile: 150; sh: 80
file content (336 lines) | stat: -rw-r--r-- 12,678 bytes parent folder | download | duplicates (4)
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
<preface id="preface">
<?dbhtml filename="ch00.html"?>
<prefaceinfo>
<pubdate>$Date$</pubdate>
<releaseinfo>$Revision$</releaseinfo>
</prefaceinfo>
<title>Preface</title>
<para>
DocBook provides a system for writing structured documents using
&SGML; or &XML;. It is particularly well-suited to books and papers
about computer hardware and software, though it is by no means limited
to them.  DocBook is a document type definition (&DTD;).
Because it is a large and robust &DTD;, and because its
main structures correspond to the general notion of what constitutes a
book, DocBook has been adopted by a large and growing community of
authors. DocBook is supported <quote>out of the box</quote> by a number
of commercial tools, and support for it is rapidly growing in a number
of free software environments. In short, DocBook is an
easy-to-understand and widely used &DTD;. Dozens of organizations use
DocBook for millions of pages of documentation, in various print
and online formats, worldwide.
</para>
<sect1 id="pref-whyread">
<title>Why Read This Book?</title>
<para>
This book is designed to be the clear, concise, normative reference to
the DocBook &DTD;. This book is the official documentation for the
DocBook &DTD;.
</para>
<para>
We hope to answer, definitively, all the questions you might
have about all the elements and entities in DocBook.  In
particular, we cover the following subjects:</para>
<itemizedlist>
<listitem><para>The general nature of DocBook. With over 300 elements,
DocBook can be a bit overwhelming at first. We quickly get you up to
speed on how the pieces fit together.</para>
</listitem>
<listitem><para>How to write DocBook documents. Where should you start
and what should you do?</para>
</listitem>
<listitem><para>Parsing and validation. After you've written a
document, how can you tell if it really conforms to the DocBook
&DTD;?</para>
</listitem>
<listitem><para>How to publish DocBook documents. After you've written
one, what do you do with it? We provide a guide to using some popular
free tools to publish DocBook documents both in print and on the
Web.</para>
</listitem>
<listitem><para>Customizing the &DTD;. Many individuals and
corporations have standardized on the DocBook &DTD;. Whether your
subject matter is computer software documentation or not,
we explain how you can write a <quote>customization layer</quote> to
tailor DocBook explicitly for your information.</para>
</listitem>
<listitem><para>Understanding all of the elements. Each element is
extensively documented, including the intended semantics and the
purpose of all its attributes. An example of proper usage is given
for every element. The parameter entities and character entities are
also described.
</para>
</listitem>
<listitem><para>Stylesheets. Several standard stylesheet
languages are briefly described.</para>
</listitem>
<listitem><para>&XML; compatability. We outline all of the points that
you'll need to consider
as you or your organization contemplate &XML; for authoring, publishing, or
both.</para>
</listitem>
<listitem><para>Additional resources and a
<acronym>CD-ROM</acronym>. Finally, we direct you to other places you
can go for all the latest info, and offer a complete set of online
documentation on the <acronym>CD-ROM</acronym>.</para>
</listitem>
</itemizedlist>
</sect1>

<sect1 id="pref-bookaud">
<title>This Book's Audience</title>
<para>
We expect that most readers will have some familiarity with &SGML; or
&XML;. Even if your experience goes no farther than writing a few
&HTML; pages, you're probably in good shape.  Although we provide an
introduction to &SGML;, &XML;, and structured markup, this book may
not suffice as your only tutorial about &SGML; and &XML;. This
depends, naturally, on your needs and experience.  For a list of some
other good resources, consult <xref linkend="app-resources"/>.
</para>
<para>
Some sections of this book describe tools and applications. For
the most part, these are Microsoft Windows or &UNIX; applications,
although there's nothing about DocBook that makes it unsuitable for the
Mac or <acronym>VM/CMS</acronym> or any other operating system of your
choice.
</para>
</sect1>

<sect1 id="pref-organization">
<title>Organization of This Book</title>
<para>This book is divided into three parts. <citetitle>Part I: Introduction
</citetitle> is an introduction to structured markup and DocBook:</para>
<variablelist>
<varlistentry><term><xref linkend="ch-gssgml"/></term>
<listitem>
<para>A quick introduction to structured markup.</para>
</listitem>
</varlistentry>
<varlistentry><term><xref linkend="ch-create"/></term>
<listitem>
<para>How to make DocBook documents.</para>
</listitem>
</varlistentry>
<varlistentry><term><xref linkend="ch-parse"/></term>
<listitem>
<para>Parsing and validating DocBook documents.</para>
</listitem>
</varlistentry>
<varlistentry><term><xref linkend="ch-publish"/></term>
<listitem>
<para>How to publish DocBook documents.</para>
</listitem>
</varlistentry>
<varlistentry><term><xref linkend="app-customizing"/></term>
<listitem>
<para>How to customize DocBook.</para>
</listitem>
</varlistentry>
</variablelist>

<para condition="refpages"><citetitle>Part II: Reference</citetitle>
<phrase condition="online">
is a complete reference to every element and parameter entity in
the DocBook &dtd.version; &DTD;.
</phrase>
<phrase condition="print">
is a complete reference to every element in the DocBook
&dtd.version; &DTD; and provides a concise summary of the
parameter entities. For a detailed reference to the parameter
entities, consult the online version available either on <link
linkend="app-cdrom">the <acronym>CD-ROM</acronym></link> or the
<ulink url="http://docbook.org/">web site</ulink>.
</phrase>
</para>

<variablelist condition="refpages">
<varlistentry><term><xref linkend="ref-element"/></term>
<listitem>
<para>A reference guide to the DocBook elements.</para>
</listitem>
</varlistentry>
<varlistentry><term><xref linkend="ref-parement"/></term>
<listitem>
<para>A reference guide to the DocBook parameter entities.</para>
</listitem>
</varlistentry>
<varlistentry><term><xref linkend="ref-charent"/></term>
<listitem>
<para>A reference guide to the character entities declared in DocBook.</para>
</listitem>
</varlistentry>
</variablelist>

<para><citetitle>Part III: Appendixes</citetitle> discusses other resources:
</para>
<variablelist>
<varlistentry><term><xref linkend="app-install"/></term>
<listitem>
<para>How to install DocBook, Jade, and the stylesheets.</para>
</listitem>
</varlistentry>
<varlistentry><term><xref linkend="app-xml"/></term>
<listitem>
<para>DocBook as &XML;.</para>
</listitem>
</varlistentry>
<varlistentry><term><xref linkend="app-versions"/></term>
<listitem>
<para>A guide to DocBook versions, including a summary of the features
expected in future releases.</para>
</listitem>
</varlistentry>
<varlistentry><term><xref linkend="app-resources"/></term>
<listitem>
<para>Other resources.</para>
</listitem>
</varlistentry>
<varlistentry><term><xref linkend="app-cdrom"/></term>
<listitem>
<para>What's on the <acronym>CD</acronym>?</para>
</listitem>
</varlistentry>
<varlistentry><term><xref linkend="app-interchange"/></term>
<listitem>
<para>An interchange checklist. Things to consider when you're sharing
DocBook documents with others.</para>
</listitem>
</varlistentry>
<varlistentry><term><xref linkend="quickref"/></term>
<listitem>
<para>A Quick Reference to the elements in DocBook.</para>
</listitem>
</varlistentry>
</variablelist>
<para>At the end of this book you'll find a <link linkend="glossary">Glossary
</link> and an
<!-- YES, THIS IS DUPLICATED ONCE WITH THE LINK AND ONCE WITHOUT: -->
<phrase condition="online"><link linkend="index">Index</link>.</phrase>
<phrase condition="print">Index.</phrase>
</para>
</sect1>

<sect1 id="pref-conventions">
<title>Conventions Used in This Book</title>

<itemizedlist>
<listitem><para>
<sgmltag>Garamond Book</sgmltag> is used for element and
attribute names.
</para></listitem>
<listitem><para>
<literal>Constant Willison</literal>
is used for program examples, attribute value
literals, start- and end-tags, and source code example text.
</para></listitem>
<listitem><para>
<replaceable>Constant Willison Oblique</replaceable> is used for
<quote>replaceable</quote> text or variables.  Replaceable text is text
that describes something you're supposed to type, like a
<replaceable>filename</replaceable>, in which the word
<quote>filename</quote> is a placeholder for the actual filename.</para>
</listitem>
<listitem><para>
<filename>Garamond Italic</filename> is used for filenames and (in the print version
of the book) <acronym>URL</acronym>s.
</para></listitem>
<listitem condition="print"><para>
<ulink url="http://docbook.org/"><acronym>URL</acronym>s</ulink> are
presented in parentheses after the name of the resource they describe
in the print version of the book.
</para></listitem>
</itemizedlist>
</sect1>
<sect1 id="pref-getbook"><title>Getting This Book</title>
<para>
If you want to hold this book in your hand and flip through its pages,
you have to buy it as you would any other book. You can also get this
book in electronic form, as a DocBook &SGML; document, and in &HTML;,
either on the <acronym>CD</acronym> that accompanies the bound book or
from this book's web site:
<ulink url="http://docbook.org/"/>.
</para>
</sect1>

<sect1 id="pref-getexamples">
<title>Getting Examples from This Book</title>
<para>
All of the examples are included on the <acronym>CD-ROM</acronym> and
online at the book's web site.  You can get the most up-to-date
information about this book from the web site: <ulink
url="http://docbook.org/">http://docbook.org/</ulink>.</para>
</sect1>

<sect1 id="pref-getdocbook">
<title>Getting DocBook</title>
<para>
The DocBook &DTD; is included <link linkend="app-cdrom-docbook">on the
<acronym>CD-ROM</acronym></link>. You can get the most up-to-date
version and information about DocBook from the DocBook web page:
<ulink url="http://www.oasis-open.org/docbook/">http://www.oasis-open.org/docbook/</ulink>.</para>
</sect1>

<sect1 id="pref-req-comments">
<title>Request for Comments</title>
<para>
Please help us improve future editions of this book by reporting any
errors, inaccuracies, bugs, misleading or confusing statements, and
plain old typos that you find. An online errata list is maintained at
<ulink
url="http://docbook.org/tdg/errata.html">http://docbook.org/tdg/errata.html</ulink>.
Email your bug reports and comments to us at <ulink role="online"
url="mailto:bookcomments@docbook.org">bookcomments@docbook.org</ulink>.</para>
</sect1>
<sect1 id="pref-acknorm">
<title>Acknowledgements from Norm</title>
<para>This book has been in the works for a long
time. It could not have been completed without the help and
encouragement of a lot of people, most especially my wife,
Deborah, who supported me through the long hours and the late
nights.
</para>
<para>
I also want to thank Lenny for collaborating with me and developing
real prose out of my rough outlines, cryptic email messages, and
scribbled notes.</para>
<para>
A number of people contributed technical feedback as this book
was being written, in particular Terry Allen and Eve Maler. I
owe most of what I know about &SGML; to them, and to the other
members of the Davenport Group who answered all my questions so
many years ago, especially Jon Bosak, Eduardo Guttentag, and
Murray Maloney. Paul Prescod, Mark Galassi, and Dave Pawson also
provided invaluable feedback on the technical review draft. It's
a better book because of them.
</para>
</sect1>
<sect1 id="pref-acklen">
<title>Acknowledgements from Lenny</title>
<para>My gratitude goes back to Dale Dougherty and Terry Allen, who
long ago encouraged me and the production department at O'Reilly to learn
&SGML;; and to Lar Kaufman, who also made large contributions to my 
knowledge and appreciation of &SGML;. But my greatest debt of thanks goes to 
Norm for all that he patiently taught me about DocBook, and for his
supreme graciousness in keeping me a part of this project. 
</para>
</sect1>
<sect1 id="pref-ackboth">
<title>Acknowledgements from Norm and Lenny</title>
<para>
Thanks finally to the great people at O'Reilly who encouraged us to
write it (Frank Willison and Sheryl Avruch), agreed to edit it
(Frank), helped design it (Alicia Cech, who worked on the interior
design, and Edie Freeman, who designed the cover), proofed and
produced it (Chris Maden, Madeline Newell, and David Futato), and
indexed it (Ellen Troutman).
</para>
</sect1>
</preface>

<!--
Local Variables:
mode:sgml
sgml-parent-document: ("book.sgm" "preface")
End:
-->