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 2153 - R-158: topLevelAttribute and use=(optional|prohibited|required)
Summary: R-158: topLevelAttribute and use=(optional|prohibited|required)
Status: CLOSED LATER
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Structures: XSD Part 1 (show other bugs)
Version: 1.0 only
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Henry S. Thompson
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-14 14:29 UTC by Sandy Gao
Modified: 2009-04-21 19:25 UTC (History)
0 users

See Also:


Attachments

Description Sandy Gao 2005-09-14 14:29:27 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
Comment 1 Sandy Gao 2005-09-14 14:30:58 UTC
Response from Henry:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002AprJun/0138.html

Resolution:
Resolved at the July 2003 f2f [1] to defer to 1.1, adding it as a requirement
[1] http://www.w3.org/XML/Group/2003/07/xml-schema-ftf-minutes.html#d0e513