Search the Catalog
DocBook: The Definitive Guide

DocBook: The Definitive Guide

By Norman Walsh & Leonard Muellner
1st Edition October 1999
1-56592-580-7, Order Number: 5807
652 pages, $36.95 , Includes CD-ROM

Book

Name

Book -- A book

Synopsis

Content Model

Book ::=
((Title,Subtitle?,TitleAbbrev?)?,
 BookInfo?,
 (Dedication|ToC|LoT|Glossary|Bibliography|Preface|Chapter|
  Reference|Part|Article|Appendix|Index|SetIndex|Colophon)*)

Attributes

Common attributes

Name

Type

Default

LabelCDATANone
StatusCDATANone
FPICDATANone

Tag Minimization

The start-tag is required for this element. The end-tag is optional, if your SGML declaration allows minimization.

Parameter Entities

%book.class;

Description

A complete book. This is probably the most common document starting point in DocBook documents. The content model of Book was made dramatically less restrictive in DocBook V3.1.

Processing expectations

Formatted as a displayed block. Generally causes a forced page break, restarts page numbering, and may generate additional front and back matter (tables of contents and indexes, for example) automatically. In a Set, Book almost always begins on the next available recto page.

The input order of major components is taken to be the desired output order.

Parents

These elements contain Book: Set.

Children

The following elements occur in Book: Appendix, Article, Bibliography, BookInfo, Chapter, Colophon, Dedication, Glossary, Index, LoT, Part, Preface, Reference, SetIndex, Subtitle, Title, TitleAbbrev, ToC.

In some contexts, the following elements are allowed anywhere: BeginPage, IndexTerm.

Attributes

FPI

FPI holds the Formal Public Identifier for the Book.

Label

Label specifies an identifying string for presentation purposes. The third Book in a Set might be labeled "Volume III", for example.

Generally, an explicit Label attribute is used only if the processing system is incapable of generating the label automatically. If present, the Label is normative; it will used even if the processing system is capable of automatic labelling.

Status

Status identifies the editorial or publication status of the Book.

Publication status might be used to control formatting (for example, printing a "draft" watermark on drafts) or processing (perhaps a document with a status of "final" should not include any components that are not final).

See Also

Appendix, Article, Chapter, Colophon, Dedication, Part, PartIntro, Preface, Set

Examples

<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
<book>
<title>An Example Book</title>
<titleabbrev>Example</titleabbrev>
<bookinfo>
  <legalnotice><para>No notice is required.</para></legalnotice>
  <author><firstname>Norman</><surname>Walsh</></author>
</bookinfo>
<dedication>
<para>
This book is dedicated to you.
</para>
</dedication>
<preface><title>Forword</title>
<para>
Some content is always required.
</para>
</preface>
<chapter><title>Required Chapter</title>
<para>
At least one chapter, reference, part, or article is required in a book.
</para>
</chapter>
<appendix><title>Optional Appendix</title>
<para>
Appendixes are optional.
</para>
</appendix>
</book>

For additional examples, see also Appendix, Collab, Set, XRef.

Back to: DocBook: The Definitive Guide


oreilly.com Home | O'Reilly Bookstores | How to Order | O'Reilly Contacts
International | About O'Reilly | Affiliated Companies | Privacy Policy

© 2001, O'Reilly & Associates, Inc.