W3C home > Mailing lists > Public > public-qt-comments@w3.org > October 2012

[Bug 19267] [XQ3.0] Context item declared in multiple modules

From: <bugzilla@jessica.w3.org>
Date: Thu, 04 Oct 2012 14:55:52 +0000
Message-Id: <E1TJmq8-00017b-Ve@jessica.w3.org>
To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19267

--- Comment #1 from Michael Kay <mike@saxonica.com> 2012-10-04 14:55:52 UTC ---
A follow-up question.

Suppose a library module has

declare context item external;

and the main module has

declare context item := 23;

Now if no external context item is supplied, it is clear that the context item
in both modules should take the value 23. But what if an external context item
is supplied, say 87? The rules for "declare context item external" suggest that
the value should be 87, but the rules for "declare context item := 23" suggest
it should be 23. But it must (I hope) be the same everywhere. Logic dictates, I
think, that the value 23 wins; this reflects the interpretation that when we
say the value is "supplied by the external environment" we include the case
where it is supplied by the main module.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 4 October 2012 14:55:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 4 October 2012 14:55:59 GMT