Hi,
This cannot be done with parameters alone.   The areas you can set with 
parameters are:

The generate.toc parameter can include book, part, chapter, and section entries 
to turn on TOCs for all of those.

The toc.section.depth parameter should be set to 3, so that you pick up the 
first three levels of sections in those TOCs that include sections.  Table 10.3 
in my books describes the effect on different section levels:

http://www.sagehill.net/docbookxsl/TOCcontrol.html#SectionTocs

With a setting of 3, you would not need to use the 'generate.section.toc.level' 
parameter, which determines which section levels have a TOC.  When set to 3, 
any section level whose entries would exceed level 3 does not get a TOC at all.

In order to restrict the levels in book, part, and chapter, you will need to 
customize the templates that match those elements in mode="toc".  In those 
templates, you can use the value of the  'toc-context' parameter that is passed 
to the template to select different children based on where the toc is being 
generated.  There is an example of this in my book:

http://www.sagehill.net/docbookxsl/TOCcontrol.html#CustomTocLevels



Bob Stayton
Sagehill Enterprises
[email protected]


  ----- Original Message ----- 
  From: Frenzel, Ina 
  To: [email protected] 
  Sent: Wednesday, May 19, 2010 2:03 AM
  Subject: [docbook-apps] Different toc levels


  Hi everybody,

   

  I would like to have different toc levels for my documentation. My 
documentation consists of parts, chapters and sections (each chapter is a 
separate xml file). Each of them should have a toc + the main toc of the 
documentation.

  The main toc should only include parts and chapters. 

  The parts toc should include the chapters. 

  The chapters toc should only include the first level of sections.

  The sections toc should include the first 3 levels of sections.

   

  How does it work? I only know the expressions <xsl:param name="generate.toc"> 
and <xsl:param name="toc.section.depth" select="2" /> for all tocs in the xml 
file. 

   

  Thanks for your help!


------------------------------------------------------------------------------

  Mit freundlichen Grüßen / Best regards
  Ina Frenzel
  Office Assistant

  FACTON GmbH
  Prager Str. 2
  01069 Dresden

  Tel.: +49-351-40223-0
  Fax: +49-351-40223-15
  Mail: [email protected]
  Web: www.facton.com



  Geschäftsführer: Chris Nicolaes
  Sitz der Gesellschaft: Prager Straße 2, 01069 Dresden 
  Handelsregister: Amtsgericht Dresden HRB 17304

------------------------------------------------------------------------------

  “This email message is intended only for the person(s) to whom it is addressed
  and as such is confidential. If you have received this communication in error,
  please notify us immediately and delete the original message.
  Thank you for your cooperation.” 


Reply via email to