xsl-list
[Top] [All Lists]

RE: Retrieving Position-Nr of Element

2003-01-30 00:15:17
Hi,

I have selected one special element A with a certain id. When 
I create of node-set with A being in it, is there a way of 
efficiently get the position() of A in that node-set without 
traversing the node-set sequentally??

No, you have to go through it, but if you use a recursive template instead of 
xsl:for-each, you can break the "loop" as soon as you find the special element 
A.

Cheers,

Jarno - VNV Nation: Structure

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>