DocBook: The Definitive GuideBy Norman Walsh & Leonard Muellner1st Edition October 1999 1-56592-580-7, Order Number: 5807 652 pages, $36.95 , Includes CD-ROM |
Chapter
Synopsis
Content Model
Chapter ::= ((DocInfo?,Title,Subtitle?,TitleAbbrev?), ToCchap?, (((CalloutList|GlossList|ItemizedList|OrderedList|SegmentedList| SimpleList|VariableList|Caution|Important|Note|Tip|Warning| LiteralLayout|ProgramListing|ProgramListingCO|Screen|ScreenCO| ScreenShot|Synopsis|CmdSynopsis|FuncSynopsis|FormalPara|Para| SimPara|Address|BlockQuote|Graphic|GraphicCO|MediaObject| MediaObjectCO|InformalEquation|InformalExample|InformalFigure| InformalTable|Equation|Example|Figure|Table|MsgSet|Procedure| Sidebar|QandASet|Anchor|BridgeHead|Comment|Highlights| Abstract|AuthorBlurb|Epigraph|IndexTerm)+, (Sect1*| (RefEntry)*| SimpleSect*|Section*))| (Sect1+| (RefEntry)+| SimpleSect+|Section+)), (Index|Glossary|Bibliography)*)Attributes
Name
Type
Default
Label CDATA None Status CDATA None Tag Minimization
The start-tag is required for this element. The end-tag is optional, if your SGML declaration allows minimization.
Parameter Entities
%chapter.class; %partcontent.mix; Description
Chapter is a chapter of a Book.
Processing expectations
Formatted as a displayed block. Usually introduces a forced page break and often starts on the next recto page. The first chapter of a document usually restarts page numbering. Typically, chapters are numbered and presented in the table of contents.
Children
The following elements occur in Chapter: Abstract, Address, Anchor, AuthorBlurb, Bibliography, BlockQuote, BridgeHead, CalloutList, Caution, CmdSynopsis, Comment, DocInfo, Epigraph, Equation, Example, Figure, FormalPara, FuncSynopsis, Glossary, GlossList, Graphic, GraphicCO, Highlights, Important, Index, IndexTerm, InformalEquation, InformalExample, InformalFigure, InformalTable, ItemizedList, LiteralLayout, MediaObject, MediaObjectCO, MsgSet, Note, OrderedList, Para, Procedure, ProgramListing, ProgramListingCO, QandASet, RefEntry, Screen, ScreenCO, ScreenShot, Sect1, Section, SegmentedList, Sidebar, SimPara, SimpleList, SimpleSect, Subtitle, Synopsis, Table, Tip, Title, TitleAbbrev, ToCchap, VariableList, Warning.
In some contexts, the following elements are allowed anywhere: BeginPage, IndexTerm.
Attributes
- Label
Label specifies an identifying string for presentation purposes. The fourth Chapter in a Book might be labeled "4", 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 Chapter.
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).
Examples
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook V3.1//EN"> <chapter label="6" id="figures"><beginpage pagenum=129> <docinfo> <keywordset> <keyword>images</keyword> <keyword>illustrations</keyword> </keywordset> <itermset> <indexterm zone="figures"><primary>Figures</primary></indexterm> <indexterm zone="figures"><primary>Pictures</primary></indexterm> <indexterm zone="notreal"> <primary>Sections</primary><secondary>Not Real</secondary> </indexterm> </itermset> </docinfo> <title>Pictures and Figures</title> <epigraph> <attribution>William Safire</attribution> <para> Knowing how things work is the basis for appreciation, and is thus a source of civilized delight. </para> </epigraph> <para> Pictures and figures … </para> <sect1><title>Top Level Section</title> <para> … </para> <bridgehead id="notreal" renderas=sect3>Not a Real Section</bridgehead> <para> This paragraph appears to be under a Sect3 heading, but it's really in the same Sect1 as the preceding paragraph. </para> </sect1> </chapter>For additional examples, see also Abstract, Appendix, Book, Collab, Highlights, IndexTerm, OLink, Part, Section, TitleAbbrev, XRef.
Back to: DocBook: The Definitive Guide
© 2001, O'Reilly & Associates, Inc.