EXSLT - math:lowest - Use Case 6

Category: error
XML Definition: math.lowest.xml
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 (view)

<values>
   <value id="one">7</value>
   <value id="two">11</value>
   <value id="three">8</value>
   <value id="four">4</value>
</values>

Stylesheet (view)

<xsl:output method="text" />
<xsl:template match="values">
   <xsl:text>Lowest: </xsl:text>
   <xsl:call-template name="math:lowest">
      <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 nodes with the minimum value in a node set.

VersionModifiedByDetails
1.12001-04-28Jeni Tennison

Clarified the wording of the definition, highlighting the fact that a non-numeric value will result in an empty set being returned.

1.22001-05-22Jeni Tennison
  • Added vendor implementations in Saxon and 4XSLT
  • Changed status to stable
1.32001-06-11Jeni Tennison

Added vendor implementation in jd.xslt.

1.42001-08-23Jeni Tennison

Added vendor implementation in libxslt.

1.52002-08-20Craig Stewart

Added Xalan-J implementation to the list.

1.62002-11-12Craig Stewart

Updated 4XSLT version to 0.12.0a3.

Copyright

http://www.exslt.org/math/functions/lowest/math.lowest.use-case.6.html last modified 2002-11-12