Re: [xsl] Retrieving sequence of unique strings from another sequence

Subject: Re: [xsl] Retrieving sequence of unique strings from another sequence
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Wed, 6 Jan 2010 10:19:58 +0000
> <xsl:for-each-group select="$list" group-by=".">
>  <xsl:sequence select="current-group()[last()=1]"/>
> </xsl:for-each-group>

If you wanted to avoid using last()* you could rewrite that as

select="current-group()[not(current-group()[2])]"

*http://markmail.org/message/nvi7pcfopz4jyzm7




--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread