This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The tests CastAs673 and K-SeqExprCast-71 cover casting to namespace-sensitive types. They currently use any-of assertions to handle differences between XQuery 1.0 and XQuery 3.0. I suggest splitting them as follows. <test-case name="CastAs673a"> <description> Try to cast a variable to xs:QName</description> <created by="Nicolae Brinza" on="2009-04-01"/> <dependency type="spec" value="XQ10"/> <test>let $var := "ABC" return $var cast as xs:QName</test> <result> <error code="XPTY0004"/> </result> </test-case> <test-case name="CastAs673b"> <description> Try to cast a variable to xs:QName</description> <created by="Nicolae Brinza" on="2009-04-01"/> <dependency type="spec" value="XP30+ XQ30+"/> <test>let $var := "ABC" return $var cast as xs:QName</test> <result> <assert-string-value>ABC</assert-string-value> </result> </test-case> <test-case name="K-SeqExprCast-71a"> <description> Casting xs:untypedAtomic to xs:QName is an error.</description> <created by="Frans Englich" on="2007-11-26"/> <dependency type="spec" value="XP20 XQ10"/> <test>xs:untypedAtomic("ncname") cast as xs:QName?</test> <result> <error code="XPTY0004"/> </result> </test-case> <test-case name="K-SeqExprCast-71b"> <description> Casting xs:untypedAtomic to xs:QName is no longer an error.</description> <created by="Frans Englich" on="2007-11-26"/> <dependency type="spec" value="XP30+ XQ30+"/> <test>xs:untypedAtomic("ncname") cast as xs:QName?</test> <result> <assert-string-value>ncname</assert-string-value> </result> </test-case> (I'm happy to make the change if someone else agrees).
I agree the changes should be made.
Fixed in CVS.