Downcasting (relabelling) in the coercion rules #117
Labels
Enhancement
A change or improvement to an existing feature
XPath
An issue related to XPath
XQuery
An issue related to XQuery
The proposed coercion rules (aka function conversion rules) permitting down-casting (aka "relabelling") introduce a backwards incompatibility.
For example in XSLT3 test case as-1711 we have
where the result of atomising elem-NMTOKEN is of type xs:NMTOKEN.
Under the new rules this is "relabelled" as xs:token, causing the "instance of" test to return false, where in XSLT 2.0/3.0 it returned true.
I think the relabelling rules should probably be amended so that if the supplied value is already an instance of the required type, no relabelling takes place - it retains its existing type.
The text was updated successfully, but these errors were encountered: