This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Floating point numbers in XPath
- From: "B. Tommie Usdin" <btusdin at mulberrytech dot com>
- To: xsl-list <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 9 Apr 2002 09:48:54 -0500
- Subject: Re: [xsl] Floating point numbers in XPath
- Reply-to: xsl-list at lists dot mulberrytech dot com
>From: burisch@london.com
>To: XSL-List@lists.mulberrytech.com
>Reply-To: curtis@london.com
>Subject: Re: [xsl] Floating point numbers in XPath
>Date: Tue, 09 Apr 2002 15:17:00 +0100
>
>Jeni,
>
>Something caught my attention.
>
>You said:
>
>>[134] DoubleLiteral ::= (("." [0-9]+) |
>> ([0-9]+ ("." [0-9]*)?))
>> ([e] | [E]) ([+] | [-])? [0-9]+
>
>The first bit caught my attention: ("." [0-9]+)
>This appears to me to be incorrect. It would allow .0 as a valid
>DoubleLiteral, and runs counter to the other rules you mentioned. (+-0 -
>
>> "0"; 0.1 -> "0.1"; ".1" is invalid because there are <1 digits to the
>
>left of the decimal point.)
>
>Comments? It's possible I'm just having my usual lousy Tuesday...
>
>Regards,
>Curtis.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list