[Bug 4273] [FS] data on element()

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4273





------- Comment #3 from mrys@microsoft.com  2007-02-20 18:55 -------
Changing fn:data() to return xs:anyAtomicType* in this case is not a viable
solution, since it would violate the core of the design of XQuery to work on
untyped data.

Your example is an unfortunate consequence of the assert (as xs:integer) not
promoting untyped values as the other type assertions (function parameters) do.
I would be strongly opposed to change our type inference rules to make this
edge case work though. People should use a treat as if they run into this
situation. 

Received on Tuesday, 20 February 2007 18:55:33 UTC