This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

sorting data and removing the duplicates


Hi there,

I've encountered the following:

I have a huge list of variables being set ( it's a xml file)
and with XSLt i want to sort  this file on alfabetical order
and then remove the duplicates.
The xml file sort of looks like this:

<value><var>date1</var><date>01-01-1999</date></value>
<value><var>date2</var><date>01-02-1999</date></value>
<value><var>date3</var><date>01-01-1999</date></value>
<value><var>date2</var><date>01-02-1999</date></value>

I found that sorting this list was not so difficult, but removing the 
duplicates...erm...
I dunno how to do that with XSLT.
My current list looks like this:

<value><var>date1</var><date>01-01-1999</date></value>
<value><var>date2</var><date>01-02-1999</date></value>
<value><var>date2</var><date>01-02-1999</date></value>
<value><var>date3</var><date>01-01-1999</date></value>

But I want something that looks like:

<value><var>date1</var><date>01-01-1999</date></value>
<value><var>date2</var><date>01-02-1999</date></value>
<value><var>date3</var><date>01-01-1999</date></value>

BTW:
The content of the var. is enough to do a search on, F.E. date2 always gets 
the same value.

Can any of you help me out here?

Best regards
RH
---------||-------||-----------
Ronald Heller
Salience BV
Villawal 21
3432 NX Nieuwegein
tel.: 030 60 56 675
fax: 030 6056 324
mob.: 06 20 41 25 77
ronald@salience.nl
www.salience.nl


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]