Menu ▾ ▴

Cannot cast to xdt:anyAtomicType

Help
marcvc
2005-08-04
2012-10-08
  • marcvc

    marcvc - 2005-08-04

    Michael,

    Behaviour we see with Saxon 8.5
    Consider the following query (te use of the cast is useless in this example, but it is smallest reproducible we were able to come up with):
    <e a="{'1' cast as xs:integer}"/>
    With Saxon 8.5 this results in the folloiwng error: Cannot cast to xdt:anyAtomicType
    Previous versions of Saxon evaluate to: <e a="1"/>

    Thanks,
    Marc