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
Cc:
Message-Id: <20031022151416.226FC3DED@xmxpita.excite.com>



Hi..

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"/>
   </xs:restriction>
  </xs:complexContent>
 </xs:complexType>
 
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:40 GMT