[Bug 5260] CastAs180, CastAs217, CastAs218 expected error


           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:


"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]"

(:Written By:Joanne Tong:)
(: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