Modules | Supported Version: 1 Source<exsl:function name="math:min">
<xsl:param name="nodes"
select="/.." />
<xsl:choose>
<xsl:when test="not($nodes)">
<exsl:return select="number('NaN')" />
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="$nodes">
<xsl:sort data-type="number" />
<xsl:if test="position() = 1">
<exsl:return select="number(.)" />
</xsl:if>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</exsl:function>Change HistorySubmitted: 2001-03-28
CopyrightThis material is in the public domain. |
http://www.exslt.org/math/functions/min/math.min.function.xsl.html last modified 2002-11-12