Project

Profile

Help

casting xs:decimal to xs:int

Added by Anonymous almost 20 years ago

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

Michael, it might well be that this is conform to the spec, but I thought the spec has changed recently on this matter. If not compliant with the spec it might well be a known or documented limitation. The following works xs:integer(1.234) but xs:int(1.234) fails with "Cannot convert decimal to xs:int" similar for xs:float and xs:double arguments. Thanks, Marc


Replies (1)

RE: casting xs:decimal to xs:int - Added by Anonymous almost 20 years ago

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

There are some outstanding comments on the spec in this area, but I think it's fairly clear that the intent is as described in F+O section 17.8.4, and I'll change Saxon to match.

    (1-1/1)

    Please register to reply