[Home] [By Thread] [By Date] [Recent Entries]

Subject: finding postion from value of attribute
From: David Elsmore <delsmore@xxxxxxxxxxxxx>
Date: Tue, 21 Oct 2003 12:03:02 +0100
Hi,

I have the following xml input and would like to identify the position of the <answer/> element with the 'correct' attribute within the <question/> context and output it as as an integer ( in this case 3).

<question>
   <answer/>
   <answer/>
   <answer eval="correct">
   <answer/>
</question>

Any suggestions much appreciated

David Elsmore



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


Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member