Project

Profile

Help

Casting from xdt:_numeric_ to xs:integer

Added by Anonymous over 18 years ago

Legacy ID: #3488383 Legacy Poster: marcvc (marcvc)

Michael, Consider the following query: let $s := sum(doc("integer.xml")//integer) return xs:integer($s) Since Saxon 8.6 it fails statically with error message: XPTY0004: Casting from xdt:numeric to xs:integer can never succeed Thanks, Marc


Replies (1)

RE: Casting from xdt:_numeric_ to xs:integer - Added by Anonymous over 18 years ago

Legacy ID: #3489039 Legacy Poster: Michael Kay (mhkay)

Thanks, this bug has been logged at https://sourceforge.net/tracker/?func=add&group_id=29872&atid=397617 Michael Kay

    (1-1/1)

    Please register to reply