[xsl] Retrieving @Name attribute of following Item.

Subject: [xsl] Retrieving @Name attribute of following Item.
From: Ian_blizard@xxxxxx (Ian Blizard)
Date: Wed, 14 Nov 2001 10:24:07 +0000
Hi all,

After I caused somewhat of a ruck mentioning flowers and chocolates, I 
now offer a small invisible prize to the solver of my next question.


    <Item Name="bob">val1</Item>	
    <Item Name="gary">val2</Item>

I simply want to get the @Name attribute from the following Item node, 
in the current node.

I'm thinking I may need to use the position() XPATH function? 


<xsl:value-of select="../Item[position()=position() + 2]"/>

Or am I barking up the wrong tree?



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

Current Thread