generate.toc parameter is used to globally turn on or off TOC lists
qandaset elements in the
document. To turn them all on, the stylesheet parameter
generate.toc must include the line:
This line is included by default in the stylesheets. To turn them all off, the line should be omitted or replaced with this line:
See the section “Which components have a TOC” for more on the
Once you have established the global pattern with
generate.toc, you can use a processing instruction to turn the list
on or off for an individual
qandaset. The example below shows the use
of the processing instruction that turns on the TOC for a single
qandaset when they are turned off
<qandaset><?dbhtml toc="1" ?> <qandaentry> ...
Likewise, the following PI can be used to turn off the TOC for a single
qandaset when they are turned on globally:
<qandaset><?dbhtml toc="0" ?> ...
The combination of the two mechanisms gives you complete control over the question lists.
|DocBook XSL: The Complete Guide - 3rd Edition||PDF version available|
Copyright © 2002-2005 Sagehill Enterprises