W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2004

attribute declaration having use=required and a fixed value

From: Zafar Abbas <zafara@microsoft.com>
Date: Thu, 12 Feb 2004 18:16:05 -0800
Message-ID: <563BD3496D37BB4B9F4E8F896A58F2B3CFC484@RED-MSG-50.redmond.corp.microsoft.com>
To: <xmlschema-dev@w3.org>

I have a question about the following text in the 'Xml Schema Part 1'
regarding schema attribute declarations:

---
Attribute Declaration Representation OK:
...
2 If default and use are both present, use must have the *actual value*
optional.
---

Does the same rule apply to fixed values? There is no similar constraint
for that. 
Is the following attribute declaration allowed? If it is, what should be
the behavior during instance validation?

<xs:attribute name="att" use="required" fixed="37" />

Thanks,
Zafar
Received on Thursday, 12 February 2004 21:16:09 GMT

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