xsl-list
[Top] [All Lists]

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

2010-01-06 04:20:24
<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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--