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: 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 |
- Unicity
- alexandre bord - Thu, 8 Aug 2002 09:44:43 -0400 (EDT)
- Michael Kay - Thu, 8 Aug 2002 10:37:31 -0400 (EDT) <=
|
|