[Bug 2337] Add {context} property to simple type definition in Datatypes

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





------- Additional Comments From cmsmcq@w3.org  2005-12-12 20:14 -------
There appears to me to be an error in the text approved by the WG at
its meeting of 21 October.  The proposal acted on there reads in part

    The {context} property is only relevant for anonymous type
    definitions, for which its value is the component in which this
    type definition appears as the value of a property, e.g. {item
    type definition} or {base type definition}.

But there are some anonymous type definitions which will not have a
{context} property, namely definitions shadowed by a redefinition.
Such definitions have no name, and thus would seem to qualify as
anonymous, but we agreed in Edinburgh that they would not acquire a
context property, indeed that no global / top-level components would
have a context property.

I believe the paragraph would be correct if it read

    The {context} property is only relevant for type definitions local
    to some other definition or declaration, for which its value is
    the component in which this type definition appears as the value
    of a property, e.g. {item type definition} or {base type
    definition}.  

This has the disadvantage of being clunkier: we are punished for
our failure to define simple terminology for global vs. local
components.
(I would change the status of the issue to reopened, except that
it is already in that status, for reasons which don't seem to have
been recorded.)

Received on Monday, 12 December 2005 20:15:09 UTC