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 4377 - error FOCA0006 should be allowed in K2-Literals-7
Summary: error FOCA0006 should be allowed in K2-Literals-7
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Frans Englich
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-07 20:52 UTC by Andrew Eisenberg
Modified: 2007-03-09 13:56 UTC (History)
0 users

See Also:


Attachments

Description Andrew Eisenberg 2007-03-07 20:52:19 UTC
I believe that error FOCA0006 can also be justified for this test case. The following rules apply to this query, 0.00...01:

XQuery, 3.1 Primary Expressions:

"The value of the numeric literal is determined by casting it to the appropriate type according to the rules for casting from xs:untypedAtomic to a numeric type as specified in Section 17.1.1 Casting from xs:string and xdt:untypedAtomic(FO)"

F&O, 17.1.1 Casting from xs:string and xs:untypedAtomic:

"In casting to xs:decimal or to a type derived from xs:decimal, if the value is not too large or too small but nevertheless cannot be represented accurately with the number of decimal digits available to the implementation, the implementation may round to the nearest representable value or may raise a dynamic error [err:FOCA0006]."
Comment 1 Frans Englich 2007-03-09 13:56:23 UTC
Sounds sensible. Added FOCA0006 as an additional baseline in CVS.