Supported Version: 1 XML Definition: set.distinct.xml Source: set.distinct.function.xsl 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 Creator: Jeni Tennison(http://www.jenitennison.com) Returns the nodes within the node set that have unique values. Version | Modified | By | Details |
---|
1.1 | 2001-04-25 | Jeni Tennison | Updated the description of the function to be more comprehensible (following Mike Kay's suggestion). | 1.2 | 2001-05-08 | Jeni Tennison | Added a description of how the template-equivalent to the function works. | 1.3 | 2001-05-22 | Jeni Tennison | - Added vendor implementations in Saxon and 4XSLT
- Changed status to stable
| 1.4 | 2001-06-11 | Jeni Tennison |
Added vendor implementation in jd.xslt.
| 1.5 | 2002-08-20 | Craig Stewart | Added Xalan-J implementation to the list. | 1.6 | 2002-11-12 | Craig Stewart | Updated 4XSLT version to 0.12.0a3. |
CopyrightThis material is in the public domain. |