xsl-list
[Top] [All Lists]

how to get position of node in node-set

2003-09-11 09:06:54
Hi,

I have a node-set of entries that all have different values for their text 
attribute.
An entry looks like this <entry text="aaa"/>.
This node set is build through muenchian grouping and assigned to a variable 
called 'legend'.

Now, for some current entry, I need to know the position of an entry with the 
same text attribute 
within the $legend node-set.


eg. $legend contains entries <entry text="aaa"/>, <entry text="bbb"/> <entry 
text="ccc"/>.
for some entry <entry text="ccc"/> I need to get the number 3. 

Can this be done?

Thanks

..............................

Erwin Kloeck
Produktentwicklung

Oestreicher + Wagner 
Medientechnik GmbH
Frankenthaler Strasse 20
D-81539 Muenchen

Fon   +49 (0)89-68961 216 
Fax   +49 (0)89-68961 271


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



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