First, forget the "Urgent" bit. Tell whoever set the deadline that
you're going to miss it, because you need to learn some new techniques.
Then go and read http://www.jenitennison.com/xslt/grouping
Michael Kay
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
Bhargav Bharath
Sent: 18 June 2003 05:50
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Urgent: Grouping attributes together
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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list