How to format recursive XML using XSL

Subject: How to format recursive XML using XSL
From: Nilay.Shah@xxxxxxxxxxxxxxxxxxx
Date: Mon, 24 Jan 2000 14:16:09 +0530

Hi,

I have a problem.

I have XML in which nodes are recursive. The part of XML is shown below :

<CATALOGTREE TYPE="CATALOG-TREE">
<NODE TYPE="Catalog" NAME="Contactor">
     <NODE TYPE="Shop" PARENT="Contactor" NAME="MN">
          <LEAFNODE TYPE="Product" NAME="MN 9" href = "temp1.html">
          </LEAFNODE>
          <LEAFNODE TYPE="Product" NAME="MN 12">
          </LEAFNODE>
          <LEAFNODE TYPE="Product" NAME="MN 16">
          </LEAFNODE>
          <LEAFNODE TYPE="Product" NAME="MN 25">
          </LEAFNODE>
          <LEAFNODE TYPE="Product" NAME="MN 32">
          </LEAFNODE>
          <LEAFNODE TYPE="Product" NAME="MN 400">
          </LEAFNODE>
          <NODE TYPE="ProdGrp" PARENT="MN" NAME="Accessories">
               <LEAFNODE TYPE="Product" NAME="Coil">
               </LEAFNODE>
               <LEAFNODE TYPE="Product" NAME="Surge Suppressor">
               </LEAFNODE>
               <LEAFNODE TYPE="Product" NAME="Mechanical Interlock">
               </LEAFNODE>
          </NODE>
     </NODE>
     <LEAFNODE TYPE="Product" NAME="Special Contactor">
     </LEAFNODE>
</NODE>
</CATALOGTREE>

How can I use XSL to access elements and display the same?

I am also attaching the XML file along with this mail.

Thanks and Regards,
Nilay.
(See attached file: Tree_XML.xml)

Attachment: Tree_XML.xml
Description: Binary data

Current Thread