[Bug 29246] [XQ31] context item declarations

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29246

--- Comment #5 from Jonathan Robie <jonathan.robie@gmail.com> ---
(In reply to Tim Mills from comment #4)
> The bug isn't disputing that there is a single value for the context item,
> but rather whether the value of the context item can be set by the external
> environment in the case where the context item is effectively declared as
> both external (in a library) and not external (in the main module).

OK, I tightened this up as follows:

<quote>
If external is specified, then:

* If the declaration occurs in a main module and a value is provided for the
context item by the external environment, then the initial context item is that
value. If the declaration occurs in a library module, then the value of the
initial context item after processing the prolog of the main module.

  The means by which an external value is provided by the external environment
is implementation-defined.

* If no value is provided for the context item by the external environment, and
VarDefaultValue is specified, then the initial context item is the result of
evaluating VarDefaultValue as described below.
</quote>

The text in this section is rather unorganized, and could certainly be
tightened up.  We could do that during the 2nd CR phase since this is
editorial, I prefer not to destabilize this part of the spec before then.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 10 November 2015 14:34:41 UTC