[Bug 1261] [XQuery] Meta type for Sequence Type

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





------- Additional Comments From mike@saxonica.com  2005-04-20 13:23 -------
There are two comments here:

(a) should types be first-class values (in the same way as many programming
languages make Class a subclass of Object). This would also allow schema (or
metadata) introspection in the same way as SQL and other database languages
permit. The answer to this is yes, it should eventually be allowed, and it was a
conscious decision to rule this out of scope for XQuery version 1.

(b) should it be possible to declare the type of a variable or function
dynamically? The answer is that this might make sense but only in the context of
a dynamic evaluation capability (constructing XPath expressions from strings at
run-time), which is something that again the WGs decided was out of scope for
this round (the XSL WG in particular spent considerable time on this as the
feature has often been requested.)

Michael Kay (personal response)

Received on Wednesday, 20 April 2005 13:23:57 UTC