This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: how to generate TOC listings in every section?
- From: Jirka Kosek <jirka at kosek dot cz>
- To: "Robert P. J. Day" <rpjday at mindspring dot com>
- Cc: docbook apps list <docbook-apps at lists dot oasis-open dot org>
- Date: Sun, 09 Feb 2003 19:44:06 +0100
- Subject: Re: DOCBOOK-APPS: how to generate TOC listings in every section?
- References: <Pine.LNX.4.44.0302090721170.10158-100000@dell>
"Robert P. J. Day" wrote:
>
> what XSL param would i use to generate a single-level
> TOC in every section, regardless of that section's level?
Lucky boy! By a coincidence a added new parameter for exactly this into
stylesheets on a Friday. If you want to use it, grab file
xsl/html/autotoc.xsl from CVS and overwrite with it old autotoc.xsl in
your stylesheets. Then add following parameter into your customization
layer
<xsl:param name="toc.max.depth" select="1"/>
and you are done.
Jirka
BTW: Don't forget to set also generate.section.toc.level parameter,
unless you don't get ToC in sections.
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz