Modules | Implementer Page: math.highest.html Function Syntaxnode-set math:highest(node-set) Template Syntax<xsl:call-template name="math:highest"> <xsl:with-param name="nodes" select="node-set" /> </xsl:call-template>
The
If any of the nodes in the node set has a non-numeric value, the
The Implementations
The following XSLT processors support
Implementations of ExamplesFunctionThe following example shows how to use the Source<values> <value id="one">7</value> <value id="two">11</value> <value id="three">8</value> <value id="four">4</value> </values> Stylesheet<xsl:template match="values"> <result> <xsl:text>Highest: </xsl:text> <xsl:value-of select="math:highest(value)/@id" /> </result> </xsl:template> Result<result>Highest: two</result> TemplateThe following example shows how to use the Source<values> <value id="one">7</value> <value id="two">11</value> <value id="three">8</value> <value id="four">4</value> </values> Stylesheet<xsl:template match="values"> <result> <xsl:text>Highest: </xsl:text> <xsl:call-template name="math:highest"> <xsl:with-param name="nodes" select="value" /> </xsl:call-template> </result> </xsl:template> Result<result>Highest: two</result> |
http://www.exslt.org/math/functions/highest/index.html last modified 2002-11-12