W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2003

<xs:attribute use='prohibited'> question

From: Mark Thomson <marktt@excite.com>
Date: Wed, 22 Oct 2003 11:14:16 -0400 (EDT)
To: xmlschema-dev@w3.org
Message-Id: <20031022151416.226FC3DED@xmxpita.excite.com>


When a local <xs:attribute> element has a use="prohibited" attribute, 
are other attributes allowed to be present? (in particular, is type="..." allowed?)

If yes, then what is the need for type information if the attribute is
 not allowed to occur in the schema instance?

If no, then is the following xml fragment from schema for schemas incorrect? 

<xs:complexType name="explicitGroup">

    <xs:attribute name="name" type="xs:NCName" use="prohibited"/>
    <xs:attribute name="ref" type="xs:QName" use="prohibited"/>
Thanks in advance..

Join Excite! - http://www.excite.com
The most personalized portal on the Web!
Received on Wednesday, 22 October 2003 11:14:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:14 UTC