This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
These tests expect XPTY0004, which continues to be the case in XQ10/XP20. However, for XQ30/XP30, they should now expect XPTY0117. The expected type of the argument is xs:QName?, but an element has been passed. Under the 3.1.5.2 Function Conversion Rules, 1. Atomization is applied to the element, giving an xs:untypedAtomic. 2. The xs:untypedAtomic is cast to xs:QName. Prior to XQ30, this was a type check error (XPTY0004). However, in XQ30/XP30, the item is type xs:untypedAtomic and the xs:QName is namespace-sensitive, so type error [err:XPTY0117] is raised. <test-case name="LocalNameFromQNameFunc015"> <description> Test function fn:local-name-from-QName. Error case - invalid parameter type (simple type) </description> <created by="Mike Rorke" on="2005-09-28"/> <environment ref="fsx"/> <test>fn:local-name-from-QName((//Folder)[1])</test> <result> <error code="XPTY0004"/> </result> </test-case> <test-case name="NamespaceURIFromQNameFunc015"> <description> Test function fn:namespace-uri-from-QName. Error case - invalid parameter type (simple type) </description> <created by="Mike Rorke" on="2005-09-28"/> <environment ref="fsx"/> <test>fn:namespace-uri-from-QName((//Folder)[1])</test> <result> <error code="XPTY0004"/> </result> </test-case>
Agreed, fixed as suggested.
Confirmed fixed.