W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2008

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

From: <bugzilla@wiggum.w3.org>
Date: Tue, 15 Jan 2008 23:05:37 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1JEuqf-00070a-6e@wiggum.w3.org>

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





------- Comment #3 from jmdyck@ibiblio.org  2008-01-15 23:05 -------
(In reply to comment #2)
> [Definition: The dynamic evaluation phase is the phase during which the 
> value of an expression is computed.]

I'm thinking that "an expression" should be "a query".

> It occurs after completion of the static analysis phase 
> and after the initial context has been created.

It might be better to say "initial dynamic context", since the initial static
context would have been created before the static analysis phase.

(Also, it's somewhat incorrect to refer to *the* initial context, since there
could be more than one [e.g., one per module]. The description of the static
analysis phase has the same problem. But fixing it will probably wait until
1.1.)

> The dynamic evaluation phase includes evaluation of dynamic expressions 
> in the prolog, followed by evaluation of the query body.

There's no such thing as "dynamic expressions". You might mean "initializing
expressions".

I think that sentence would fit better as the last or second-last sentence of
para 3 in 2.2.3.2.

Also, I think we're missing a sentence such as:
    If the Module Feature is supported, the dynamic context is extended with
    variable values and function implementations from imported modules.
(i.e., the dynamic evaluation phase is not just concerned with the main module,
it also involves processing the prologs of library modules). But maybe that
should wait for 1.1 as well.
Received on Tuesday, 15 January 2008 23:05:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:49 GMT