First off I think your XML is malformed as you have no quotes around the
attribute values, ie: <node2 deep="2"/>
It is a bit difficult to provide a solution as you have not given me much of an
explanation to work from.
I am presuming that you are at a certain nodal level and you want to get the
value of deep? If so then just use:-
<xsl:value-of select="@deep"/>
-----Original Message-----
From: Molnar Agnes [mailto:agi(_at_)harpia(_dot_)homeip(_dot_)net]
Sent: 08 May 2003 13:14
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Deep
I hope, this is my last question today :)
How can I know the deep of a node? Example:
<node1 deep=1>
<node2 deep=2/>
<node3 deep=2>
<node4 deep=3/>
</node3>
</node1>
Thanks again,
Agnes
Molnár Ágnes
-----------------------
Web: http://aghy.uw.hu
Icq: 167290967
Tel: +36-20-212-8493
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list