xsl-list
[Top] [All Lists]

RE: how to figure out what level a node is on

2004-05-14 05:37:28

I'm building a menu using xslt. Therefore I need to figure 
out what level 
an item is on.

How can I figure that out?


If by level you mean the depth in the XML hierarchy, use count(ancestor::*).

Michael Kay



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