RE: How to format recursive XML using XSL

Subject: RE: How to format recursive XML using XSL
From: "Rakesh Ajmera" <rakesh_ajmera@xxxxxxxxxx>
Date: Wed, 26 Jan 2000 17:24:27 -0600
i dont think its a valid xml document...

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of
Nilay.Shah@xxxxxxxxxxxxxxxxxxx
Sent: Monday, January 24, 2000 2:46 AM
To: XSL-List@xxxxxxxxxxxxxxxx
Subject: How to format recursive XML using XSL




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)



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


Current Thread