[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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) Attachment:
Tree_XML.xml
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|