topLevelAttribute and use=(optional|prohibited|required)


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

<xs:complexType name="topLevelAttribute">
   <xs:restriction base="xs:attribute">
     <xs:element ref="xs:annotation" minOccurs="0"/>
     <xs:element name="simpleType" minOccurs="0" type="xs:localSimpleType"/>
    <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"/>

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.


Asir S Vedamuthu

webMethods, Inc.
703-460-2513 or

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