OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


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



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
bobs@sagehill.net
 
 
----- Original Message -----
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



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]