[Bug 5224] [XQuery] Dynamic context in global variable initializers

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





------- Comment #7 from jonathan.robie@redhat.com  2008-01-16 18:04 -------
Mike Kay wrote:

[quote]If the focus is not explicitly undefined, then I think it should be the
same as
for the QueryBody in the main module. I can't see any sense in making it
different in different modules - it would complicate the API immensely. (I
could see some logic in saying that the focus is explicitly undefined for
variable initializers in library modules: that could prevent some subtle bugs.)
[/quote]

I believe this was the sense of the discussion - the focus is the same as for
the QueryBody in the main module. Although it would make sense for the focus to
be undefined, at least some implementations currently define it, and at least
some users are taking advantage of this to set variables using the initial
focus.

Jonathan

Received on Wednesday, 16 January 2008 18:04:24 UTC