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 5260 - CastAs180, CastAs217, CastAs218 expected error
Summary: CastAs180, CastAs217, CastAs218 expected error
Status: CLOSED INVALID
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 1.0.2
Hardware: PC Windows NT
: 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: 2007-11-09 08:16 UTC by Tim Mills
Modified: 2010-03-16 16:00 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2007-11-09 08:16:18 UTC
Query CastAs180 expects the error FOCA0002 (Invalid lexical value).  I believe this in incorrect, and the query should expect FORG0001 (Invalid value for cast/constructor).  Quoting from:

http://www.w3.org/TR/xquery/#id-cast

"If casting from the input type to the target type is supported but nevertheless it is not possible to cast the input value into the value space of the target type, a dynamic error is raised. [err:FORG0001]"

(:*******************************************************:)
(:Test:CastAs180:)
(:Written By:Joanne Tong:)
(:Date:2005-07-21T09:49:53-07:00:)
(:Purpose:Try casting xs:float(INF) to xs:integer:)
(:*******************************************************:)

xs:float("INF") cast as xs:integer
Comment 1 Tim Mills 2007-11-09 08:24:15 UTC
Sorry, after a second reading I disagree.