Re: [xslt] math:max()/math:min() bug?
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] math:max()/math:min() bug?
- Date: Sun, 29 Feb 2004 05:29:46 -0500
On Sun, Feb 29, 2004 at 06:36:18AM +0000, Xyster ! wrote:
> Hi,
>
> Running the stylesheet below produces:
>
> min: NaN
> max: NaN
>
> I tested the same stylesheet with saxon and got the expected, and I assume
> correct, result:
>
> min: 1
> max: 5
>
>
> The stylesheet:
>
> <?xml version='1.0'?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:exsl="http://exslt.org/common"
> xmlns:math="http://exslt.org/math"
> extension-element-prefixes="exsl math"
> version='1.1'>
> <xsl:output method="html" />
>
> <xsl:template match="*">
> <xsl:variable
> name="a"><o>1</o><o>2</o><o>5</o><o>4</o><o>3</o></xsl:variable>
>
> min: <xsl:value-of select="math:min(exsl:node-set($a)/o)" />
> max: <xsl:value-of select="math:max(exsl:node-set($a)/o)" />
>
> </xsl:template>
>
> </xsl:stylesheet>
Hum, looks like a bug,could you register it in bugzilla ?
thanks,
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]