This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Distinct items?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] Distinct items?
- From: eric at perceive dot net (Eric Vitiello)
- Date: Tue, 27 Mar 2001 12:14:58 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
Thanks! that worked excellently!
> Hello
> You can use this:
> select='//item[not(year = preceding-sibling::item/year)]'>
>
> I hope that helps
>
> Edmund
>
> -----Original Message-----
> From: eric@perceive.net [mailto:eric@perceive.net]
>
> I would like to retrieve a list of items such as:
>
> 1998 1999 2000
>
> from the following XML:
>
> <projects>
> <item>
> <year>1998</year>
> </item>
> <item>
> <year>1998</year>
> </item>
> <item>
> <year>1999</year>
> </item>
> <item>
> <year>2000</year>
> </item>
> <item>
> <year>2000</year>
> </item>
> </projects>
>
>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list