[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
recursive xml

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.