This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
XPTY0117 is defined for XP30 as: In a cast expression, if an item is of type xs:untypedAtomic and the expected type is namespace-sensitive, a type error [err:XPTY0117] is raised. However, this test expects FORG0001. This seems incorrect. The test itself has the following expression: xs:untypedAtomic("an arbitrary string(untypedAtomic source)") cast as xs:QName
I think the description of the error in XPath/XQuery Appendix F is incorrect. The only time XPTY0117 is thrown is when this conversion is invoked in the course of applying the function conversion rules (i.e. when an untypedAtomic argument is supplied to a funcion expecting a QName. It is not raised "In a cast expression". The rules for cast expressions are in F+O. For a cast from untypedAtomic to QName, two errors are defined: FORG0001 if the value is not a lexically-valid QName, and FONS0004 if the namespace prefix is not in scope.
The WG agreed that editorial change is required in the spec.
The change has been applied and committed.
The change has been applied in the current draft but does not appear with change highlighting.