Re: [xsl] Self index?

Subject: Re: [xsl] Self index?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 11 Apr 2003 09:34:04 +0100
> 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