EXSLT - math:min - Use Case 6

Category: error
Function or Template: template

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

Use Case

Source

<values>
   <value>7</value>
   <value>11</value>
   <value>8</value>
   <value>4</value>
</values>

Stylesheet

<xsl:output method="text" />
<xsl:template match="values">
   <xsl:text>Minimum: </xsl:text>
   <xsl:call-template name="math:min">
      <xsl:with-param name="nodes"
                      select="number(value)" />
   </xsl:call-template>
</xsl:template>

Change History

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

Returns the minimum value from a node-set.

Copyright

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