[Home] [By Thread] [By Date] [Recent Entries]

Subject: Depth of an XML file using XSL
From: Padmapriya Kandhadai <priyak@xxxxxxxxxxxxxxxx>
Date: Wed, 16 Oct 2002 12:49:57 -0400 (EDT)
Hello,

  I want to find the maximum depth of an XML file.

Say I have
<abc>
  <def>
    <ghi>
      http:test.com
    </ghi>
  </def>
  <jkl>
     <mno>
       http:test2.com
     </mno>
  </jkl>
</abc>

I want the xsl code to return the depth as three. So for any generic XML tree how do I find the greatest depth of the xml tree?

Thanks and regards,
Priya.


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


Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member