This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Hello, The Casting table in section 17.1 allows casting xs:QName to itself, but in section 17.1.1, one can read: "A static error is raised [err:XPST0083]XP if the argument to a cast for xs:QName or a type derived from xs:QName or xs:NOTATION is not an xs:string literal." Hence, the latter disallows casting from xs:QName, since xs:QName is not a xs:string literal. I think it makes sense and should be allowed to cast from xs:QName to xs:QName, and hence that the latter clause should be loosened to allow casting from an xs:string literal or xs:QName. This bug is similar to "[Bug 1515] Contradictory statement: casting to xs:notation permitted/allowed", http://www.w3.org/Bugs/Public/show_bug.cgi?id=1515 Cheers, Frans
Casting from a type to itself is a special case -- a noop -- and everyone recognizes this. I don't think a special exception is required. I suggest we close this without action.
Sure, go ahead and close(resolution INVALID, I guess). Frans
Closed with approval of the commentor.