This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: A position question
- From: Oleg Tkachenko <olegt at multiconn dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 13 Feb 2002 20:08:14 +0200
- Subject: Re: [xsl] A position question
- Organization: Multiconn International
- References: <53FEA05B1DD1D411AF8C0060B0679CE1023E8127@msgmro539nts.fmr.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Haque, Suraiya wrote:
> 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?
Compute it by yourself - just count all preceding siblings:
count(preceding-sibling::node()) + 1
--
Oleg Tkachenko
Multiconn International, Israel
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list