Making a DocBook Book

A typical Book, in English at least, consists of some meta-information in a BookInfo (Title, Author, Copyright, and so on), one or more Prefaces, several Chapters, and perhaps a few Appendixes. A Book may also contain Bibliographys, Glossarys, Indexes and a Colophon.

Example 2-2 shows the structure of a typical book. Additional content is required where the ellipses occur.

Example 2-2. A Typical Book

<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
<book>
<bookinfo>
  <title>My First Book</title>
  <author><firstname>Jane</firstname><surname>Doe</surname></author>
  <copyright><year>1998</year><holder>Jane Doe</holder></copyright>
</bookinfo>
<preface><title>Foreword</title> ... </preface>
<chapter> ... </chapter>
<chapter> ... </chapter>
<chapter> ... </chapter>
<appendix> ... </appendix>
<appendix> ... </appendix>
<index> ... </index>
</book>