| 1 |
<preface id="preface"> |
| 2 |
<?dbhtml filename="ch00.html"?> |
| 3 |
<prefaceinfo> |
| 4 |
<pubdate>$Date$</pubdate> |
| 5 |
<releaseinfo>$Revision$</releaseinfo> |
| 6 |
</prefaceinfo> |
| 7 |
<title>Preface</title> |
| 8 |
<para> |
| 9 |
DocBook provides a system for writing structured documents using |
| 10 |
&SGML; or &XML;. It is particularly well-suited to books and papers |
| 11 |
about computer hardware and software, though it is by no means limited |
| 12 |
to them. DocBook is a document type definition (&DTD;). |
| 13 |
Because it is a large and robust &DTD;, and because its |
| 14 |
main structures correspond to the general notion of what constitutes a |
| 15 |
book, DocBook has been adopted by a large and growing community of |
| 16 |
authors. DocBook is supported <quote>out of the box</quote> by a number |
| 17 |
of commercial tools, and support for it is rapidly growing in a number |
| 18 |
of free software environments. In short, DocBook is an |
| 19 |
easy-to-understand and widely used &DTD;. Dozens of organizations use |
| 20 |
DocBook for millions of pages of documentation, in various print |
| 21 |
and online formats, worldwide. |
| 22 |
</para> |
| 23 |
<sect1 id="pref-whyread"> |
| 24 |
<title>Why Read This Book?</title> |
| 25 |
<para> |
| 26 |
This book is designed to be the clear, concise, normative reference to |
| 27 |
the DocBook &DTD;. This book is the official documentation for the |
| 28 |
DocBook &DTD;. |
| 29 |
</para> |
| 30 |
<para> |
| 31 |
We hope to answer, definitively, all the questions you might |
| 32 |
have about all the elements and entities in DocBook. In |
| 33 |
particular, we cover the following subjects:</para> |
| 34 |
<itemizedlist> |
| 35 |
<listitem><para>The general nature of DocBook. With over 300 elements, |
| 36 |
DocBook can be a bit overwhelming at first. We quickly get you up to |
| 37 |
speed on how the pieces fit together.</para> |
| 38 |
</listitem> |
| 39 |
<listitem><para>How to write DocBook documents. Where should you start |
| 40 |
and what should you do?</para> |
| 41 |
</listitem> |
| 42 |
<listitem><para>Parsing and validation. After you've written a |
| 43 |
document, how can you tell if it really conforms to the DocBook |
| 44 |
&DTD;?</para> |
| 45 |
</listitem> |
| 46 |
<listitem><para>How to publish DocBook documents. After you've written |
| 47 |
one, what do you do with it? We provide a guide to using some popular |
| 48 |
free tools to publish DocBook documents both in print and on the |
| 49 |
Web.</para> |
| 50 |
</listitem> |
| 51 |
<listitem><para>Customizing the &DTD;. Many individuals and |
| 52 |
corporations have standardized on the DocBook &DTD;. Whether your |
| 53 |
subject matter is computer software documentation or not, |
| 54 |
we explain how you can write a <quote>customization layer</quote> to |
| 55 |
tailor DocBook explicitly for your information.</para> |
| 56 |
</listitem> |
| 57 |
<listitem><para>Understanding all of the elements. Each element is |
| 58 |
extensively documented, including the intended semantics and the |
| 59 |
purpose of all its attributes. An example of proper usage is given |
| 60 |
for every element. The parameter entities and character entities are |
| 61 |
also described. |
| 62 |
</para> |
| 63 |
</listitem> |
| 64 |
<listitem><para>Stylesheets. Several standard stylesheet |
| 65 |
languages are briefly described.</para> |
| 66 |
</listitem> |
| 67 |
<listitem><para>&XML; compatability. We outline all of the points that |
| 68 |
you'll need to consider |
| 69 |
as you or your organization contemplate &XML; for authoring, publishing, or |
| 70 |
both.</para> |
| 71 |
</listitem> |
| 72 |
<listitem><para>Additional resources and a |
| 73 |
<acronym>CD-ROM</acronym>. Finally, we direct you to other places you |
| 74 |
can go for all the latest info, and offer a complete set of online |
| 75 |
documentation on the <acronym>CD-ROM</acronym>.</para> |
| 76 |
</listitem> |
| 77 |
</itemizedlist> |
| 78 |
</sect1> |
| 79 |
|
| 80 |
<sect1 id="pref-bookaud"> |
| 81 |
<title>This Book's Audience</title> |
| 82 |
<para> |
| 83 |
We expect that most readers will have some familiarity with &SGML; or |
| 84 |
&XML;. Even if your experience goes no farther than writing a few |
| 85 |
&HTML; pages, you're probably in good shape. Although we provide an |
| 86 |
introduction to &SGML;, &XML;, and structured markup, this book may |
| 87 |
not suffice as your only tutorial about &SGML; and &XML;. This |
| 88 |
depends, naturally, on your needs and experience. For a list of some |
| 89 |
other good resources, consult <xref linkend="app-resources"/>. |
| 90 |
</para> |
| 91 |
<para> |
| 92 |
Some sections of this book describe tools and applications. For |
| 93 |
the most part, these are Microsoft Windows or &UNIX; applications, |
| 94 |
although there's nothing about DocBook that makes it unsuitable for the |
| 95 |
Mac or <acronym>VM/CMS</acronym> or any other operating system of your |
| 96 |
choice. |
| 97 |
</para> |
| 98 |
</sect1> |
| 99 |
|
| 100 |
<sect1 id="pref-organization"> |
| 101 |
<title>Organization of This Book</title> |
| 102 |
<para>This book is divided into three parts. <citetitle>Part I: Introduction |
| 103 |
</citetitle> is an introduction to structured markup and DocBook:</para> |
| 104 |
<variablelist> |
| 105 |
<varlistentry><term><xref linkend="ch-gssgml"/></term> |
| 106 |
<listitem> |
| 107 |
<para>A quick introduction to structured markup.</para> |
| 108 |
</listitem> |
| 109 |
</varlistentry> |
| 110 |
<varlistentry><term><xref linkend="ch-create"/></term> |
| 111 |
<listitem> |
| 112 |
<para>How to make DocBook documents.</para> |
| 113 |
</listitem> |
| 114 |
</varlistentry> |
| 115 |
<varlistentry><term><xref linkend="ch-parse"/></term> |
| 116 |
<listitem> |
| 117 |
<para>Parsing and validating DocBook documents.</para> |
| 118 |
</listitem> |
| 119 |
</varlistentry> |
| 120 |
<varlistentry><term><xref linkend="ch-publish"/></term> |
| 121 |
<listitem> |
| 122 |
<para>How to publish DocBook documents.</para> |
| 123 |
</listitem> |
| 124 |
</varlistentry> |
| 125 |
<varlistentry><term><xref linkend="app-customizing"/></term> |
| 126 |
<listitem> |
| 127 |
<para>How to customize DocBook.</para> |
| 128 |
</listitem> |
| 129 |
</varlistentry> |
| 130 |
</variablelist> |
| 131 |
|
| 132 |
<para condition="refpages"><citetitle>Part II: Reference</citetitle> |
| 133 |
<phrase condition="online"> |
| 134 |
is a complete reference to every element and parameter entity in |
| 135 |
the DocBook &dtd.version; &DTD;. |
| 136 |
</phrase> |
| 137 |
<phrase condition="print"> |
| 138 |
is a complete reference to every element in the DocBook |
| 139 |
&dtd.version; &DTD; and provides a concise summary of the |
| 140 |
parameter entities. For a detailed reference to the parameter |
| 141 |
entities, consult the online version available either on <link |
| 142 |
linkend="app-cdrom">the <acronym>CD-ROM</acronym></link> or the |
| 143 |
<ulink url="http://docbook.org/">web site</ulink>. |
| 144 |
</phrase> |
| 145 |
</para> |
| 146 |
|
| 147 |
<variablelist condition="refpages"> |
| 148 |
<varlistentry><term><xref linkend="ref-element"/></term> |
| 149 |
<listitem> |
| 150 |
<para>A reference guide to the DocBook elements.</para> |
| 151 |
</listitem> |
| 152 |
</varlistentry> |
| 153 |
<varlistentry><term><xref linkend="ref-parement"/></term> |
| 154 |
<listitem> |
| 155 |
<para>A reference guide to the DocBook parameter entities.</para> |
| 156 |
</listitem> |
| 157 |
</varlistentry> |
| 158 |
<varlistentry><term><xref linkend="ref-charent"/></term> |
| 159 |
<listitem> |
| 160 |
<para>A reference guide to the character entities declared in DocBook.</para> |
| 161 |
</listitem> |
| 162 |
</varlistentry> |
| 163 |
</variablelist> |
| 164 |
|
| 165 |
<para><citetitle>Part III: Appendixes</citetitle> discusses other resources: |
| 166 |
</para> |
| 167 |
<variablelist> |
| 168 |
<varlistentry><term><xref linkend="app-install"/></term> |
| 169 |
<listitem> |
| 170 |
<para>How to install DocBook, Jade, and the stylesheets.</para> |
| 171 |
</listitem> |
| 172 |
</varlistentry> |
| 173 |
<varlistentry><term><xref linkend="app-xml"/></term> |
| 174 |
<listitem> |
| 175 |
<para>DocBook as &XML;.</para> |
| 176 |
</listitem> |
| 177 |
</varlistentry> |
| 178 |
<varlistentry><term><xref linkend="app-versions"/></term> |
| 179 |
<listitem> |
| 180 |
<para>A guide to DocBook versions, including a summary of the features |
| 181 |
expected in future releases.</para> |
| 182 |
</listitem> |
| 183 |
</varlistentry> |
| 184 |
<varlistentry><term><xref linkend="app-resources"/></term> |
| 185 |
<listitem> |
| 186 |
<para>Other resources.</para> |
| 187 |
</listitem> |
| 188 |
</varlistentry> |
| 189 |
<varlistentry><term><xref linkend="app-cdrom"/></term> |
| 190 |
<listitem> |
| 191 |
<para>What's on the <acronym>CD</acronym>?</para> |
| 192 |
</listitem> |
| 193 |
</varlistentry> |
| 194 |
<varlistentry><term><xref linkend="app-interchange"/></term> |
| 195 |
<listitem> |
| 196 |
<para>An interchange checklist. Things to consider when you're sharing |
| 197 |
DocBook documents with others.</para> |
| 198 |
</listitem> |
| 199 |
</varlistentry> |
| 200 |
<varlistentry><term><xref linkend="quickref"/></term> |
| 201 |
<listitem> |
| 202 |
<para>A Quick Reference to the elements in DocBook.</para> |
| 203 |
</listitem> |
| 204 |
</varlistentry> |
| 205 |
</variablelist> |
| 206 |
<para>At the end of this book you'll find a <link linkend="glossary">Glossary |
| 207 |
</link> and an |
| 208 |
|
| 209 |
<phrase condition="online"><link linkend="index">Index</link>.</phrase> |
| 210 |
<phrase condition="print">Index.</phrase> |
| 211 |
</para> |
| 212 |
</sect1> |
| 213 |
|
| 214 |
<sect1 id="pref-conventions"> |
| 215 |
<title>Conventions Used in This Book</title> |
| 216 |
|
| 217 |
<itemizedlist> |
| 218 |
<listitem><para> |
| 219 |
<sgmltag>Garamond Book</sgmltag> is used for element and |
| 220 |
attribute names. |
| 221 |
</para></listitem> |
| 222 |
<listitem><para> |
| 223 |
<literal>Constant Willison</literal> |
| 224 |
is used for program examples, attribute value |
| 225 |
literals, start- and end-tags, and source code example text. |
| 226 |
</para></listitem> |
| 227 |
<listitem><para> |
| 228 |
<replaceable>Constant Willison Oblique</replaceable> is used for |
| 229 |
<quote>replaceable</quote> text or variables. Replaceable text is text |
| 230 |
that describes something you're supposed to type, like a |
| 231 |
<replaceable>filename</replaceable>, in which the word |
| 232 |
<quote>filename</quote> is a placeholder for the actual filename.</para> |
| 233 |
</listitem> |
| 234 |
<listitem><para> |
| 235 |
<filename>Garamond Italic</filename> is used for filenames and (in the print version |
| 236 |
of the book) <acronym>URL</acronym>s. |
| 237 |
</para></listitem> |
| 238 |
<listitem condition="print"><para> |
| 239 |
<ulink url="http://docbook.org/"><acronym>URL</acronym>s</ulink> are |
| 240 |
presented in parentheses after the name of the resource they describe |
| 241 |
in the print version of the book. |
| 242 |
</para></listitem> |
| 243 |
</itemizedlist> |
| 244 |
</sect1> |
| 245 |
<sect1 id="pref-getbook"><title>Getting This Book</title> |
| 246 |
<para> |
| 247 |
If you want to hold this book in your hand and flip through its pages, |
| 248 |
you have to buy it as you would any other book. You can also get this |
| 249 |
book in electronic form, as a DocBook &SGML; document, and in &HTML;, |
| 250 |
either on the <acronym>CD</acronym> that accompanies the bound book or |
| 251 |
from this book's web site: |
| 252 |
<ulink url="http://docbook.org/"/>. |
| 253 |
</para> |
| 254 |
</sect1> |
| 255 |
|
| 256 |
<sect1 id="pref-getexamples"> |
| 257 |
<title>Getting Examples from This Book</title> |
| 258 |
<para> |
| 259 |
All of the examples are included on the <acronym>CD-ROM</acronym> and |
| 260 |
online at the book's web site. You can get the most up-to-date |
| 261 |
information about this book from the web site: <ulink |
| 262 |
url="http://docbook.org/">http://docbook.org/</ulink>.</para> |
| 263 |
</sect1> |
| 264 |
|
| 265 |
<sect1 id="pref-getdocbook"> |
| 266 |
<title>Getting DocBook</title> |
| 267 |
<para> |
| 268 |
The DocBook &DTD; is included <link linkend="app-cdrom-docbook">on the |
| 269 |
<acronym>CD-ROM</acronym></link>. You can get the most up-to-date |
| 270 |
version and information about DocBook from the DocBook web page: |
| 271 |
<ulink url="http://www.oasis-open.org/docbook/">http://www.oasis-open.org/docbook/</ulink>.</para> |
| 272 |
</sect1> |
| 273 |
|
| 274 |
<sect1 id="pref-req-comments"> |
| 275 |
<title>Request for Comments</title> |
| 276 |
<para> |
| 277 |
Please help us improve future editions of this book by reporting any |
| 278 |
errors, inaccuracies, bugs, misleading or confusing statements, and |
| 279 |
plain old typos that you find. An online errata list is maintained at |
| 280 |
<ulink |
| 281 |
url="http://docbook.org/tdg/errata.html">http://docbook.org/tdg/errata.html</ulink>. |
| 282 |
Email your bug reports and comments to us at <ulink role="online" |
| 283 |
url="mailto:[email protected]">[email protected]</ulink>.</para> |
| 284 |
</sect1> |
| 285 |
<sect1 id="pref-acknorm"> |
| 286 |
<title>Acknowledgements from Norm</title> |
| 287 |
<para>This book has been in the works for a long |
| 288 |
time. It could not have been completed without the help and |
| 289 |
encouragement of a lot of people, most especially my wife, |
| 290 |
Deborah, who supported me through the long hours and the late |
| 291 |
nights. |
| 292 |
</para> |
| 293 |
<para> |
| 294 |
I also want to thank Lenny for collaborating with me and developing |
| 295 |
real prose out of my rough outlines, cryptic email messages, and |
| 296 |
scribbled notes.</para> |
| 297 |
<para> |
| 298 |
A number of people contributed technical feedback as this book |
| 299 |
was being written, in particular Terry Allen and Eve Maler. I |
| 300 |
owe most of what I know about &SGML; to them, and to the other |
| 301 |
members of the Davenport Group who answered all my questions so |
| 302 |
many years ago, especially Jon Bosak, Eduardo Guttentag, and |
| 303 |
Murray Maloney. Paul Prescod, Mark Galassi, and Dave Pawson also |
| 304 |
provided invaluable feedback on the technical review draft. It's |
| 305 |
a better book because of them. |
| 306 |
</para> |
| 307 |
</sect1> |
| 308 |
<sect1 id="pref-acklen"> |
| 309 |
<title>Acknowledgements from Lenny</title> |
| 310 |
<para>My gratitude goes back to Dale Dougherty and Terry Allen, who |
| 311 |
long ago encouraged me and the production department at O'Reilly to learn |
| 312 |
&SGML;; and to Lar Kaufman, who also made large contributions to my |
| 313 |
knowledge and appreciation of &SGML;. But my greatest debt of thanks goes to |
| 314 |
Norm for all that he patiently taught me about DocBook, and for his |
| 315 |
supreme graciousness in keeping me a part of this project. |
| 316 |
</para> |
| 317 |
</sect1> |
| 318 |
<sect1 id="pref-ackboth"> |
| 319 |
<title>Acknowledgements from Norm and Lenny</title> |
| 320 |
<para> |
| 321 |
Thanks finally to the great people at O'Reilly who encouraged us to |
| 322 |
write it (Frank Willison and Sheryl Avruch), agreed to edit it |
| 323 |
(Frank), helped design it (Alicia Cech, who worked on the interior |
| 324 |
design, and Edie Freeman, who designed the cover), proofed and |
| 325 |
produced it (Chris Maden, Madeline Newell, and David Futato), and |
| 326 |
indexed it (Ellen Troutman). |
| 327 |
</para> |
| 328 |
</sect1> |
| 329 |
</preface> |
| 330 |
|
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
|
| 336 |
|