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 5512 - Definition of valid schema document is incomplete
Summary: Definition of valid schema document is incomplete
Status: CLOSED FIXED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Structures: XSD Part 1 (show other bugs)
Version: 1.1 only
Hardware: Macintosh All
: P1 minor
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema comments list
URL:
Whiteboard: terminology cluster
Keywords: resolved
Depends on:
Blocks:
 
Reported: 2008-02-29 03:48 UTC by C. M. Sperberg-McQueen
Modified: 2008-05-31 14:58 UTC (History)
0 users

See Also:


Attachments

Description C. M. Sperberg-McQueen 2008-02-29 03:48:27 UTC
In section 2.4 of Structures, conformance of schema documents is defined
as requiring (along with other things):

    1 It is valid with respect to the schema specified in Schema for Schema 
      Documents (Structures) (normative) (§A). (That is, in its ·post-schema-
      validation infoset·, the <schema> element has a [validation attempted]  
      property with value full or partial and a [validity] property with value 
      valid.

There are two problems here:  (1) the closing parenthesis is missing, and
(2) the definition fails to specify that the schema element is to be 
validated against the top-level element declaration for schema (and not,
for example, against the top-level type definition for xs:anyType).

In one sense, the fix is obvious.  In another, it's less obvious:  this case
illustrates the difficulties one has using the terminology and concepts
defined by XSD to specify useful rules about validity of one's inputs.
(See also bug 5164, which touches on the same problem.)
Comment 1 C. M. Sperberg-McQueen 2008-03-21 18:06:09 UTC
At our call today, the XML Schema WG agreed that this needs to be fixed,
and should be classed as needsDrafting.  No clone is needed for 1.0, since
the error was introduced inadvertently during a revision for 1.1.  

The editors expect a pending proposal for bug 5195 to address this problem.
Comment 2 C. M. Sperberg-McQueen 2008-03-21 18:08:39 UTC
Correction:  comment #1 was pasted into the wrong buffer; the reference to
bug 5195 does not apply to this issue.  

As formulated, this issue does not apply to 1.0 (so comment #1 is correct
to that extent), because 1.0 does not define conformance for schema
documents.  (It probably should, but it's not clear that that's a change 
that can legitimately be made in an erratum.)
Comment 3 C. M. Sperberg-McQueen 2008-05-29 06:50:57 UTC
A wording proposal intended to resolve this issue is at
http://www.w3.org/XML/Group/2004/06/xmlschema-1/structures.b5512.html
(member-only link).
Comment 4 C. M. Sperberg-McQueen 2008-05-31 03:37:20 UTC
The proposal mentioned in comment 3 was adopted by the WG on today's call;
the issue is resolved by that action.