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*

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" />

Received on Thursday, 12 February 2004 21:16:09 UTC

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