Modules | Implementer Page: math.max.html Function Syntaxnumber math:max(node-set) Template Syntax<xsl:call-template name="math:max"> <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>Maximum: </xsl:text> <xsl:value-of select="math:max(value)" /> </result> </xsl:template> Result<result>Maximum: 11</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>Maximum: </xsl:text> <xsl:call-template name="math:max"> <xsl:with-param name="nodes" select="value" /> </xsl:call-template> </result> </xsl:template> Result<result>Maximum: 11</result> |
http://www.exslt.org/math/functions/max/index.html last modified 2002-11-12