|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Remove duplicates from a list
<xsl:variable name="unique-list"
select="//state[not(.=following::state)]" />
<xsl:for-each select="$unique-list">
<xsl:value-of select="." />
</xsl:for-each>
On Wed, 27 Oct 1999, Minita Jha wrote:
> <location>
> <state>xxxx</state>
> </location>
>
> <location>
> <state>yyyy</state>
> </location>
>
> <location>
> <state>xxxx</state>
> </location>
>
> The desired output is:
>
> xxxx
> yyyy
>
> That is, duplicate values of state should not be printed.
> Can this be done?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








