W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2009

Reg. Attribute declaration

From: Bharath Kumar Reddy T <bharathkr@huawei.com>
Date: Mon, 05 Jan 2009 15:51:49 +0530
To: xmlschema-dev@w3.org
Message-id: <000001c96f1f$6bdd14d0$3a12120a@china.huawei.com>

According to schema spec. the attribute declaration is 


  default = string
  fixed = string
  form = (qualified | unqualified)
  id = ID
  name = NCName
  ref = QName
  type = QName
  use = (optional | prohibited | required) : optional
  {any attributes with non-schema namespace . . .}>
  Content: (


(i.e) attribute declaration content can be "annotation" and "simpleType".
When I give a complexType as follows, 


<xs:attribute name="Second_Attribute" use="prohibited">


                                          <xs:restriction base="xs:string">

                                                 <xs:enumeration value="A"











Where I have given both annotation and SimpleType. 

Altova spy is giving error that "annotation element is not allowed". But
according to schema spec, I think this is correct.

Can anybody tell me whether this is an error or not an error.


Thanks and Regards,


Received on Monday, 5 January 2009 10:22:42 UTC

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