RE: [xsl] Unicity

Subject: RE: [xsl] Unicity
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 8 Aug 2002 15:40:21 +0100
Elimination of duplicates is generally discussed under the heading of
"grouping": see under grouping in your favourite XSLT textbook, or at
www.jenitennison.com/xslt/grouping.

(Essentially, you need to do the first part of the grouping problem,
which is to select the distinct nodes; you might be able to skip the
second part, which is finding all the duplicates of each distinct node).

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> alexandre bord
> Sent: 08 August 2002 14:43
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Unicity
> 
> 
> Hello
> 
> 
> <foo>
>   <bar name="xxx" />
>   <bar name="yyy" />
> </foo>
> <foo>
>     <bar name="yyy" />
>     <bar name="zzz" />
> </foo>
> 
> How can i select all names of all bar nodes but choosing 
> "yyy" only once : I would like : xxx yyy zzz
> 
> Thanks a lot
> 
> Alex
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


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


Current Thread