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>


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 asirv@webmethods.com
Received on Friday, 31 May 2002 10:43:57 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:00 UTC