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

Subject: A position question
From: "Haque, Suraiya" <Suraiya.Haque@xxxxxxx>
Date: Wed, 13 Feb 2002 12:32:06 -0500
I have a list of elements, some with matching ids. How do I find the
position of the elements with matching ids within the context node?

<elemA>
	<elemB id="11"/>
	<elemB id="12"/>
	<elemB id="11"/>
	<elemB id="44"/>
	<elemB id="33"/>
	<elemB id="11"/>
</elemA>

I would like to find the positions of the elemB elements with id="11". I can
get the next one by following-sibling::elemB[@id="11"], but I don't know how
to find it's position in the context node. Any suggestions?

Thanks,
Suraiya

 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