EXSLT - math:highest - Use Case 5

Category: error
Function or Template: element

This use case shows an error when the function is passed a number as the value of the first argument.

Use Case

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:output method="text" />
<xsl:template match="values">
   <xsl:text>Highest: </xsl:text>
   <xsl:value-of select="math:highest(number(value))" />
</xsl:template>

Change History

Submitted: 2001-03-28
Creator: Jeni Tennison(http://www.jenitennison.com)

Returns the nodes with the maximum value in a node set.

Copyright

http://www.exslt.org/math.highest.use-case.5.html last modified 2001-03-28