W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2007

[Bug 5260] CastAs180, CastAs217, CastAs218 expected error

From: <bugzilla@wiggum.w3.org>
Date: Fri, 09 Nov 2007 08:16:18 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1IqP2I-0002V3-O7@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5260

           Summary: CastAs180, CastAs217, CastAs218 expected error
           Product: XML Query Test Suite
           Version: 1.0.2
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


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
Received on Friday, 9 November 2007 08:16:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:21 UTC