This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7001 - Converting strings "-0.0E0" and "1e-5" to xs:decimal
Summary: Converting strings "-0.0E0" and "1e-5" to xs:decimal
Status: RESOLVED INVALID
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 1.0.2
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-06 01:36 UTC by Bogdan Butnaru
Modified: 2009-06-06 14:57 UTC (History)
1 user (show)

See Also:


Attachments

Description Bogdan Butnaru 2009-06-06 01:36:18 UTC
Hello!

Tests CastableAs019, CastableAs017, CastableAs099, and CastableAs101 try the following expressions:

“xs:untypedAtomic("-0.0E0") castable as xs:decimal”
“xs:untypedAtomic("1e-5") castable as xs:decimal”
“xs:string("-0.0E0") castable as xs:decimal”
“xs:string("1e-5") castable as xs:decimal”

and expect the result to be “false”. I've read the cited specs several times tonight and I can't think of any reason why the result wouldn't be “true” (with the resulting decimals being 0.0E0 and 1.0E-5).

Am I missing something, or are these bugs?
Comment 1 Michael Kay 2009-06-06 08:37:45 UTC
Exponential notation is not allowed for xs:decimal. See

http://www.w3.org/TR/xmlschema-2/#decimal

Comment 2 Bogdan Butnaru 2009-06-06 14:57:36 UTC
I can't imagine how I could have missed that. Sorry for the noise.