This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The test cases CastFOCA0001-1 and CastFOCA0003-1 use integer literals as input and expect FOCA0001 and FOCA0003 to be raised. But these error qnames are limited to the case when input type is xs:float or xs:double. See second bullet of Section 17.1.3.3 and 17.1.3.4. I think the test case should be rewritten to use floating point literals: xs:decimal(99e100); xs:integer(99e100); On a separate note, I find it interesting that the test case assumes what the implementation-defined limits for xs:decimal and xs:integer are. Perhaps the test case should allow both results -- correct answer and error.
The section numbers mentioned in the previous comment pertain to the F&O spec.
Naresh: Thanks for the feedback. I made the changes as suggested. Implementation limits are hard to test for as we can only guess what that limit is. I am hoping most implementations will generate the error. Both the error and the number are given as possible outcomes. Please close the bug if in agreement and able to verify. Thanks, Carmelo