Modules | Implementer Page: math.min.html Function Syntaxnumber math:min(node-set) Template Syntax<xsl:call-template name="math:min"> <xsl:with-param name="nodes" select="node-set" /> </xsl:call-template>
The
If the node set is empty, or if the result of converting the string values of any of the nodes to a number is
The Implementations
The following XSLT processors support
Implementations of ExamplesFunctionThe following example shows how to use the Source<values> <value>7</value> <value>11</value> <value>8</value> <value>4</value> </values> Stylesheet<xsl:template match="values"> <result> <xsl:text>Minimum: </xsl:text> <xsl:value-of select="math:min(value)" /> </result> </xsl:template> Result<result>Minimum: 4</result> TemplateThe following example shows how to use the Source<values> <value>7</value> <value>11</value> <value>8</value> <value>4</value> </values> Stylesheet<xsl:template match="values"> <result> <xsl:text>Minimum: </xsl:text> <xsl:call-template name="math:min"> <xsl:with-param name="nodes" select="value" /> </xsl:call-template> </result> </xsl:template> Result<result>Minimum: 4</result> |
http://www.exslt.org/math/functions/min/index.html last modified 2002-11-12