[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: TOC with parents
I have chunked html output from docbook 5, and want to output the entire TOC on every page, including all parents of the chapter currently being rendered. I found one approach here: http://markmail.org/message/xpmrfboyu3tr5ehn But it is 11 years old, and not quite right, so I modified it a little... <!-- show all sections in TOC, including parents of the current section --> <xsl:template match="chapter" mode="toc"> <xsl:param name="toc-context" select="."/> <xsl:for-each select="ancestor::book"> <xsl:apply-templates select="book" mode="toc"> <xsl:with-param name="toc-context" select="."/> </xsl:apply-templates> </xsl:for-each> </xsl:template> but it doesn't work. I'm a bit out of my depth with this level of XSLT hackery. Any help would be welcome... Ari -- --------------------------> Aristedes Maniatis ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001 GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
Attachment:
signature.asc
Description: OpenPGP digital signature
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]