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

RE: In XSL how do you group common child nodes and ass

Subject: RE: In XSL how do you group common child nodes and associate duplicate parents to it?
From: "Andrew Welch" <andrew@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Feb 2002 09:40:34 -0000
child ass
Are you sure?

<tr>
<td> D1 </td>
<td> C1 </td>
<td> C2 </td>
</tr>

<tr>
<td> D2 </td>
<td> C1 </td>
</tr>
<tr>
<td> D3 </td>
<td> C1 </td>
</tr>
<tr>
<td> D4 </td>
<td> C2 </td>
</tr> 

You will need some colspans in there to make it a well-formed (sigh) table.

cheers

andrew

===

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Su Dh
Sent: Thursday, February 07, 2002 6:48 AM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  In XSL how do you group common child nodes and associate
duplicate parents to it?



I have a xml file as shown below

<A>
     <B>Test</B>
     <C>
          <CName>C1</CName>
          <D>
               <Dname>D1</DName>
               <Dname>D2</DName>
               <Dname>D3</DName>
          </D>
     </C>

     <B>Test</B>
     <C>
          <CName>C2</CName>
          <D>
               <Dname>D1</DName>
               <Dname>D4</DName>
          </D>
     </C>
</A>


Output Required:

<tr>
<td> D1 </td>
<td> C1 </td>
<td> C2 </td>
</tr>

<tr>
<td> D2 </td>
<td> C1 </td>
</tr>
<tr>
<td> D3 </td>
<td> C1 </td>
</tr>
<tr>
<td> D4 </td>
<td> C2 </td>
</tr> 


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



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


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.