xsl-list
[Top] [All Lists]

Re: [xsl] XHTML table of contents with XSLT

2007-02-23 09:58:27
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>