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

Parsing nodes with different depths in XML simultaneou

Subject: Parsing nodes with different depths in XML simultaneously
From: "Ravi Roy" <ravi.aroy@xxxxxxxxx>
Date: Wed, 13 Feb 2008 12:51:39 +0530
 Parsing nodes with different depths in XML simultaneou
Hi,

I want parse nodes with different depths in XML, but I am not sure how
to achieve this, for example I have following test.xml :

<?xml version="1.0" encoding="UTF-8"?>
<root>
   <sub1>
       <sub2>
         <sub3>
               <sub4 name="xyz" />
               <sub5 name="abc" />
               <sub6 name="jkl" />
               <sub7 name="stu" />
          </sub3>
      </sub2>
     </sub1>
   <suite name="xyz.123" value="20" />
   <suite name="567.abc" value="10" />
   <suite name="345.jkl" value="50" />
   <suite name="stu.578" value="40" />
</root>

I am able to make the table like the following, but value in the table
would be based on the match in suite name, like if string sub4 name
matches the string in suite name then in the following table I want to
make the entry of 20 against sub4 :

  -------------------------------------
  | sub4 | sub5 |sub6 |sub7|
  |---------|---------|--------|-------|
  |         |         |        |       |
  |         |         |        |       |


Does someone know how to achieve this in XSL ?

Thanks.
Ravi.

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.