This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to generate TOC listings in every section?


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]