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

Re: Self index?

Subject: Re: Self index?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 11 Apr 2003 09:34:04 +0100
generate index
> Question

Dave, you know this is a little under-specified to call a question:-)

But I'll take a guess.

generate-id() generates an id based on the current node in the source
(which happens to be the stylesheet in your case, but that's not
relevant)

So the question is, what is the current node when
 <ul>
      <xsl:for-each select="//h3">
        <li><a href="#{generate-id()}">

is executed and what is the current node when

 <h3 id="{generate-id()}"> 

is executed?

Since you didn't show any of your styesheet except for those two
snnippets it's hard to tell, but I would guess they are not the same.

David

PS
>  playing with xslt2.
> saxon 6.5.2 processor.
?? saxon 6 doesn't do xslt2 ?

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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-2013 All Rights Reserved.