[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

A position question

Subject: A position question
From: "Haque, Suraiya" <Suraiya.Haque@xxxxxxx>
Date: Wed, 13 Feb 2002 12:32:06 -0500
what is position question
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.