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

Urgent: Grouping attributes together

Subject: Urgent: Grouping attributes together
From: "Bhargav Bharath" <xmlbar@xxxxxxxxxxx>
Date: Wed, 18 Jun 2003 10:19:49 +0530
student class attributes
Hi,

I need help to write an XSLT file for converting first.xml to second.xml where the attribute values are grouped

first.xml

<school>
 <student class="A">L</student>
 <student class="B">M</student>
 <student class="A">O</student>
 <student class="C">P</student>
 <student class="B">Q</student>
 <student class="C">R</student>
 <student class="A">S</student>
</school>

second.xml

<school>

 <Section class="A">
    <student >L</student>
    <student >O</student>
    <student >S</student>
 </Section>

<Section class="B">
    <student >M</student>
    <student >Q</student>
</Section>

<Section class="C">
    <student >P</student>
    <student >R</student>
</Section>

</school>

Thanks in advance
Bhargav

_________________________________________________________________
Food fit for Kings! Now available online. http://server1.msn.co.in/features/general/itc/index.asp



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.