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

Subject: RE: [xsl] how to figure out what level a node is on
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 14 May 2004 13:37:28 +0100
> 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

Current Thread