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 2154 - R-158: topLevelAttribute and use=(optional|prohibited|required)
Summary: R-158: topLevelAttribute and use=(optional|prohibited|required)
Status: CLOSED INVALID
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Structures: XSD Part 1 (show other bugs)
Version: 1.1 only
Hardware: All All
: P4 normal
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema comments list
URL:
Whiteboard: medium, easy
Keywords: resolved
Depends on:
Blocks:
 
Reported: 2005-09-14 14:36 UTC by Sandy Gao
Modified: 2009-04-21 19:21 UTC (History)
0 users

See Also:


Attachments

Description Sandy Gao 2005-09-14 14:36:45 UTC
This is a fragment from the Schema for Schemas

<xs:complexType name="topLevelAttribute">
  <xs:complexContent>
   <xs:restriction base="xs:attribute">
    <xs:sequence>
     <xs:element ref="xs:annotation" minOccurs="0"/>
     <xs:element name="simpleType" minOccurs="0" type="xs:localSimpleType"/>
    </xs:sequence>
    <xs:attribute name="ref" use="prohibited"/>
    <xs:attribute name="form" use="prohibited"/>
    <xs:attribute name="use" use="prohibited"/>
    <xs:attribute name="name" use="required" type="xs:NCName"/>
   </xs:restriction>
  </xs:complexContent>
</xs:complexType>
attribute 'use' is ruled out,


<xs:attribute name="use" use="prohibited"/>
However, the prose in section 3.2.3 (constraints on XML Representation) doesn't 
say anything about the 'use' attribute.

I believe that the schema for schemas is correct and hope, the prose will rule 
this out explicitly. 

See the following for more info:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002AprJun/0128.html

Response from Henry:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002AprJun/0138.html

This was originally an issue opened against XML Schema 1.0. It was discussed at 
the July 2003 f2f [1] to defer to 1.1.
[1] http://www.w3.org/XML/Group/2003/07/xml-schema-ftf-minutes.html#d0e513
Comment 1 C. M. Sperberg-McQueen 2006-10-11 02:58:04 UTC
Reviewing this issue, I propose that the WG accept Henry's account of
the matter and close the issue with RESOLVED / INVALID, meaning we
believe the reported problem is not really a problem.
Comment 2 C. M. Sperberg-McQueen 2006-10-21 20:39:39 UTC
On 20 October 2006, the Working Group agreed to close this issue with a
disposition of INVALID, meaning that we do not believe the state of 
affairs described in the issue is actually a problem.