Modules | Supported Version: 1 Source<exsl:function name="set:distinct">
<xsl:param name="nodes"
select="/.." />
<xsl:choose>
<xsl:when test="not($nodes)">
<exsl:result select="/.." />
</xsl:when>
<xsl:otherwise>
<xsl:variable name="distinct"
select="set:distinct($nodes[position() > 1])" />
<exsl:result select="$distinct | $nodes[1][. != $distinct]" />
</xsl:otherwise>
</xsl:choose>
</exsl:function>Change HistorySubmitted: 2001-03-28
CopyrightThis material is in the public domain. |
http://www.exslt.org/set/functions/distinct/set.distinct.function.xsl.html last modified 2002-11-12