Modules | Supported Version: 1 Source<xsl:template name="set:distinct">
<xsl:param name="nodes"
select="/.." />
<xsl:param name="distinct"
select="/.." />
<xsl:choose>
<xsl:when test="$nodes">
<xsl:call-template name="set:distinct">
<xsl:with-param name="distinct"
select="$distinct | $nodes[1][not(. = $distinct)]" />
<xsl:with-param name="nodes"
select="$nodes[position() > 1]" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="$distinct"
mode="set:distinct" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="node()|@*"
mode="set:distinct">
<xsl:copy-of select="." />
</xsl:template>Change HistorySubmitted: 2001-03-28
CopyrightThis material is in the public domain. |
http://www.exslt.org/set/functions/distinct/set.distinct.template.xsl.html last modified 2002-11-12