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'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Distinct items?
- From: Edmund Mitchell <EMitchell at fnf dot com>
- Date: Tue, 27 Mar 2001 08:40:36 -0800
- Reply-To: xsl-list at lists dot mulberrytech dot com
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