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

Grouping using a Child Node....

Subject: Grouping using a Child Node....
From: "Prince Ohilip" <rajavintemakan@xxxxxxxxxxxxxx>
Date: 22 Jun 2002 06:04:05 -0000
 Grouping using a Child Node....
Hi,
I have a Requirement in which i have to do grouping of Parent Nodes based on a child node value


For Eg:
   If i have an XML like
   <items>
      <item>
        <type>A</type>
        <name>one</name>
        <value>100</value>
     </item>
      <item>
        <type>A</type>
        <name>three</name>
        <value>300</value>
     </item>

      <item>
        <type>B</type>
        <name>four</name>
        <value>100</value>
     </item>

      <item>
        <type>B</type>
        <name>five</name>
        <value>300</value>
     </item>
      <item>
        <type>A</type>
        <name>six</name>
        <value>100</value>
     </item>
</items>

I want to create a XSL for Generating an HTML Table grouped by Type

Table will be like

           ItemName  Value
Type -A
           one       100
           Three     300
           Six       100

Type - B
           four      100
           five      300


Thanks


_________________________________________________________
There is always a better job for you at Monsterindia.com.
Go now http://monsterindia.com/rediffin/


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.