W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2002

topLevelAttribute and use=(optional|prohibited|required)

From: Asir S Vedamuthu <asirv@webmethods.com>
Date: Fri, 31 May 2002 10:46:43 -0400
To: <www-xml-schema-comments@w3.org>
Message-ID: <OKEBJFDOCNPMPLOONLOIGEBNCHAA.asirv@webmethods.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT