[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XHTML table of contents with XSLT

Subject: Re: XHTML table of contents with XSLT
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 23 Feb 2007 17:58:04 +0100
Re:  XHTML table of contents with XSLT
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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.