Re: [docbook-apps] Make dedication element appear in TOC

From
Bob Stayton <>
Date
2011-09-19T03:51:57+00:00
ID
00f501cc767f$72677a10$6600a8c0@pazu
Thread
Re: [docbook-apps] Make dedication element appear in TOC


  X-NONE
  X-NONE
  
   
   
   
   
   
   
   
   
   
   
   
  
  
   
   
   
   
   
   
   
   
   
   
   
  

Hi Dave,

I think you also need to add a template with 
match="d:dedication" mode="toc", as for other elements (see examples in 
autotoc.xsl).  There is no match="*" for mode="toc" to catch new 
elements.

 

Bob Stayton
Sagehill Enterprises


 

 

  
----- Original Message ----- 

  
From: 
  redlettucemail 

  
To:  
  

  
Sent: Sunday, September 18, 2011 7:56 
  PM

  
Subject: [docbook-apps] Make dedication 
  element appear in TOC

  

  

  
How 
  do I customise the stylesheets so that the “dedication” element appears in the 
  generated TOC? It appears that this and “acknowledgments” are the only 
  elements that are not extracted to a TOC. 

  
 

  
I thought I had found the right code with 
  <xsl:template name="division.toc"> in autotoc.xsl. I added 
  $toc-context/d:dedication to variable “nodes” – but all that did was copy the 
  entire contents of my “dedication” chunk to the TOC. It didn’t create the 
  title with a leader line and page number. 

  
Thanks,

  
 
Dave Gardiner