xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Depth of an XML file using XSL


Subject: [xsl] 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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor