<xs:attribute use='prohibited'> question

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 UTC