[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] knowing the position of certain node


Subject: RE: [xsl] knowing the position of certain node
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 6 Jan 2004 14:40:19 -0000

> If I use <xsl:value-of select="row[field2 = 'yes']" /> I get 
> all the third "row" field values. How can I know the position 
> of the found node? for example, in that case, I want 3 to be 
> printed on screen, something like "position(row[field2 = 'yes'])"
> 

count(row[field2 = 'yes']/preceding-sibling::row + 1)

Michael Kay


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



Current Thread