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]
Other format: [Raw text]

RE: Unicity


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@ntlworld.com
work: Michael.Kay@softwareag.com 

> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com 
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of 
> alexandre bord
> Sent: 08 August 2002 14:43
> To: xsl-list@lists.mulberrytech.com
> 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


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