[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Make dedication element appear in TOC
-----Original Message-----
From: "Bob Stayton" <bobs@sagehill.net>
To: "redlettucemail" <redlettucemail@mailscan.acenet.net.au>, <docbook-apps@lists.oasis-open.org>
Date: Sun, 18 Sep 2011 20:51:43 -0700
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.----- Original Message -----From: redlettucemailSent: Sunday, September 18, 2011 7:56 PMSubject: [docbook-apps] Make dedication element appear in TOCHow 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]