This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Unicity
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 8 Aug 2002 15:40:21 +0100
- Subject: RE: [xsl] Unicity
- Reply-to: xsl-list at lists dot mulberrytech dot com
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