This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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
Sorry, after a second reading I disagree.