Name
toc — A table of contents
Synopsis
toc ::=
((((title? &
titleabbrev?),
info? db.titleforbidden.info) |
info db.titleonly.info),
(annotation | bridgehead |
remark | revhistory | Indexing inlines | Admonition elements | Formal elements | Graphic elements | Informal elements | List elements | Paragraph elements | Publishing elements | Synopsis elements | Technical elements | Verbatim elements)*,
(tocdiv | tocentry)*)
Attribute synopsis
Additional constraints
If this element is the root element, it must have a
versionattribute.
Description
The toc element defines a table of contents, or
more generally, a list of titles in a document.
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.
See Also
tocdiv, tocentry
Examples
<book xmlns='http://docbook.org/ns/docbook'> <title>DocBook: The Definitive Guide</title> <subtitle>TOC Markup Example</subtitle> <toc> <title>Table of Contents</title> <tocdiv> <title>Preface</title> <tocentry>Why Read This Book?</tocentry> <tocentry>This Book's Audience</tocentry> <!-- ... --> </tocdiv> <tocdiv> <title>Part I. Introduction</title> <tocdiv> <title>Chapter 1. Getting Started with DocBook</title> <tocdiv> <title>A Short DocBook History</title> <tocentry>The HaL and O'Reilly Era</tocentry> <tocentry>The Davenport Era</tocentry> <tocentry>The OASIS Era</tocentry> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access