XML technologies / DocBook / Generating FO (PDF) / Displaying tables of contents

(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)

Tables of contents make a book accessible but present a design challenge. Readers must be able to find terms quickly. With deeply nested sections, the hierarchy must be clear.

The following table lists named templates from the file autotoc.xsl.

Table: Templates and DocBook elements for contents lists

Templates

Generates

For DocBook elements

component.toc

Table of contents

appendix, article, bibliography, glossary, index, qandaset (if the parameter qanda.in.toc is nonzero), refentry, section and sect1

division.toc

Table of contents

appendix, article, bibliography, chapter, glossary, index, part, preface and reference

section.toc

Section table of contents

section, sect2 through sect4

set.toc

Book and index contents

book and index

toc.line

Formatting

all supplied entries

  

  

back to top