It is allways best to describe your problem in the best way. If you are forming an example of your problem, make it so that there is no confusion .. in your question , "deep" could mean the following.. 1.attribute "deep" of the node 2.how deep is the node for case1.( which I suspect is not what you want ) , @deep will get you the value of the attribute deep for case 2 count(ancestor::*) will get you the depth of a node..( the trick is to count the number of ancestors) hope this helps Vasu ----- Original Message ----- From: "Jim Fuller" <jim.fuller@xxxxxxxxxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Thursday, May 08, 2003 11:30 AM Subject: RE: Deep > http://xml.web.cern.ch/XML/www.dpawson.co.uk/xsl/sect2/N2193.html > > cheers, jim fuller > > -----Original Message----- > From: Molnar Agnes [mailto:agi@xxxxxxxxxxxxxxxxx] > Sent: 08 May 2003 13:14 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: 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 > > This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient please contact the sender immediately. Any disclosure, copying, distribution or any other use of this communication is strictly prohibitedand may be unlawful. Stuart Lawrence Marketing Communications Limited reserves the right to monitor and intercept communications for unlawful business purposes. > > This also confirms that this message has been swept for viruses, although Stuart Lawrence Marketing Communications Limited accepts no responsibility for any loss or damage resulting directly or indirectly from the use of this email or contents. > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format