[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] XHTML table of contents with XSLT
Subject: Re: [xsl] XHTML table of contents with XSLT
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 23 Feb 2007 17:58:04 +0100
|
Daniel K. Schneider wrote:
Here is what I have so far. Problem are:
* This solution ONLY works for h1,h2,etc. that have different content.
E.g. you
couldn't have two h2 with "example" content.
* I also tried to hack something with position, but apparently
position() does
not return position in the global tree in the following rule.
You can use the generate-id function to generate ids for the hn elements
and use them as anchors in your table of contents.
<http://www.w3.org/TR/xslt#function-generate-id>
--
Martin Honnen
http://JavaScript.FAQTs.com/
|