[xquery-talk] context item in module variable
Benito van der Zander
benito at benibela.de
Mon Oct 14 05:42:39 PDT 2013
> If you raise a bug against the test then the WG will have to make a decision on the question.
But do they even read those?
There is still no answer to my "every integer-valued xs:decimal could
also be a xs:integer"-bug from last month...
Your answers to the mailing list are way faster
On 10/14/2013 02:19 PM, Michael Kay wrote:
> On 14 Oct 2013, at 12:43, Benito van der Zander wrote:
>>> XQuery 3.0 is explicit that all modules share the same initial context item:
>>> [Definition: The initial context item is a context item that an implementation can set before processing a query begins. The query body and the prolog of every module in a query share the same initial context item.]
>> I had read that before, which is why the post is about XQuery 1...
>> Then perhaps the test should have a XQuery 3 dependency?
> If you think so, then you are free to challenge the test by raising a bug report.
>> (My implementation evaluates all variables in a module only once and then shares the cached value with all
>> queries that import the module; much more logical like compile and link in traditional languages)
> I don't think that was the intent of the 1.0 spec, but I agree that the spec was not clear on the point. If you raise a bug against the test then the WG will have to make a decision on the question.
> Michael Kay
> talk at x-query.com
More information about the talk