This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Floating point numbers in XPath


>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]