This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

A 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]