topLevelAttribute and use=(optional|prohibited|required)

Hi,

This is a fragment from Schema for Schemas [1],

<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, prose in section 3.2.3 (constraints on XML Representation) doesn't
say a word about 'use' attribute.

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

[1]
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#normative-schemaSchema
[2]
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#section-Constraints-on-X
ML-Representations-of-Attribute-Declarations

Asir S Vedamuthu

webMethods, Inc.
703-460-2513 or asirv@webmethods.com
http://www.webmethods.com/

Received on Friday, 31 May 2002 10:43:57 UTC