This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2337 - Add {context} property to simple type definition in Datatypes
Summary: Add {context} property to simple type definition in Datatypes
Status: CLOSED FIXED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Datatypes: XSD Part 2 (show other bugs)
Version: 1.1 only
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords: resolved
Depends on:
Blocks: 2335
  Show dependency treegraph
 
Reported: 2005-10-10 15:50 UTC by Henry S. Thompson
Modified: 2008-03-05 16:12 UTC (History)
0 users

See Also:


Attachments

Description Henry S. Thompson 2005-10-10 15:50:15 UTC
 
Comment 1 Sandy Gao 2005-10-27 16:13:07 UTC
Discussed at 2005-10-21 telecon [1]. A few amendments were proposed and 
accepted by the WG.

Resolution: Proposal accepted unanimously as amended.

[1] http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2005Oct/0019.html
Comment 2 C. M. Sperberg-McQueen 2005-12-12 20:14:45 UTC
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.)
Comment 3 C. M. Sperberg-McQueen 2005-12-12 20:28:26 UTC
Closer examination of the Edinburgh minutes shows my memory was at fault:
they say clearly that redefined components will get a {context}
property pointing to their redefiner.  The state of affairs I was
remembering was an earlier stage of the proposal finally adopted.

The text approved by the WG does not appear to me to be 
particularly clear, and it assumes silently that only one other 
component will ever have an anonymous type definition as the value 
of one of its properties, which seems error prone.  But it is not, 
as far as I can tell, in error.


Comment 4 C. M. Sperberg-McQueen 2005-12-17 01:51:52 UTC
Integrated into status quo documents, 8 December 2005.
Comment 5 Dave Peterson 2008-03-05 16:12:38 UTC
Although no formal request for closure was made, since the reporter as a member
of the WG was aware of the resolution of this bug over two years ago, I'm
marking it closed.