Modules | Version: 1 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
The An implementation of this extension function in the EXSLT math namespace must conform to the behaviour described in this document. Implementations
Implementations of ExampleselementThe 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/index.html last modified 2001-03-28