This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
A position question
- From: "Haque, Suraiya" <Suraiya dot Haque at fmr dot com>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 13 Feb 2002 12:32:06 -0500
- Subject: [xsl] A position question
- Reply-to: xsl-list at lists dot mulberrytech dot com
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