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

DocBook: The Definitive Guide
PrevNext

Name

ToC -- A table of contents

Synopsis

Content Model

ToC ::= ((DocInfo?,Title,Subtitle?,TitleAbbrev?)?,  ToCfront*,  (ToCpart|ToCchap)*,  ToCback*)

Attributes

Common attributes

Name

Type

Default

PagenumCDATANone

Tag Minimization

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

Parameter Entities

%nav.class;%partcontent.mix;

Description

The ToC element defines a table of contents in a document.

The general structure of elements in a ToC is analogous to the structure of the document described. For example, a ToC for a Book might contain TocFront elements for the front-matter of the book, TocChap elements for the body of the book, and TocBack elements for the back matter. Inside each of these are additional elements reflecting the structure of each component.

Processing expectations

Formatted as a displayed block.

In real life, ToCs are usually generated automatically by the presentation system and never have to be represented explicitly in the document source.

Parents

These elements contain ToC: Article, Book, Part, Sect1, Sect2, Sect3, Sect4, Sect5, Section, Set.

Children

The following elements occur in ToC: DocInfo, Subtitle, Title, TitleAbbrev, ToCback, ToCchap, ToCfront, ToCpart.

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

Attributes

Pagenum

PageNum indicates the page on which this Table of Contents appears in the printed document

Examples

<!DOCTYPE toc PUBLIC "-//OASIS//DTD DocBook V3.1//EN"> <toc> <tocfront pagenum="i">Preface</tocfront> <tocpart>   <tocchap>     <tocentry pagenum="1">Getting Started with SGML/XML</tocentry>     <toclevel1>       <tocentry pagenum="1">HTML and SGML vs. XML</tocentry>     </toclevel1>     <toclevel1>       <tocentry pagenum="3">How Does DocBook Fit In?</tocentry>       <toclevel2>         <tocentry pagenum="3">A Short DocBook History</tocentry>       </toclevel2>     </toclevel1>     <!-- ... -->   </tocchap> </tocpart> <!-- ... --> <tocback pagenum="305">Bibliography</tocback> </toc>


PrevHomeNext
TitleAbbrevUpToCback

Back to: DocBook: The Definitive Guide


O'Reilly Home | O'Reilly Bookstores | How to Order | O'Reilly Contacts
International | About O'Reilly | Affiliated Companies

© 1999, O'Reilly & Associates, Inc.



DocBook. The Definitive Guide
DocBook 5: The Definitive Guide
ISBN: 0596805020
EAN: 2147483647
Year: 1999
Pages: 412
Authors: Walsh Norman, Richard L. Hamilton
BUY ON AMAZON

Similar book on Amazon
DocBook XSL: The Complete Guide (4th Edition)
DocBook XSL: The Complete Guide (4th Edition)
XSLT, 2nd Edition
XSLT, 2nd Edition
XSLT Cookbook: Solutions and Examples for XML and XSLT Developers, 2nd Edition
XSLT Cookbook: Solutions and Examples for XML and XSLT Developers, 2nd Edition
XML: Visual QuickStart Guide (2nd Edition)
XML: Visual QuickStart Guide (2nd Edition)

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net