This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Sorting & Grouping
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Sorting & Grouping
- From: Satish Patil <Satish dot Patil at ctp dot com>
- Date: Thu, 26 Apr 2001 16:15:27 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi All,
I need help in sorting & grouping.
I have a XML
<parent>
<child>
<name>AAAA</name>
<emp_id>1</emp_id>
</child>
<child>
<name>BBBBB</name>
<emp_id>3</emp_id>
</child>
<child>
<name>CCCC</name>
<emp_id>2</emp_id>
</child>
<child>
<name>DDDDD</name>
<emp_id>2</emp_id>
</child>
</parent>
How to write an XSL that sorts & groups according to <emp_id>. The intended
O/P is
1 AAAA
2 CCCC
DDDD
3 BBBB
Thank you in advance.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list