Providing a value for attributes defined with use="required"

I wish to have an attribute which is both required and has a specific
value.

According to the primer section 2.2, table 1, second row, I should specify
this as

<attribute name="foo" type="string" use="required" value="r2"/>

the comment from the row being "element/attribute must appear once, its
value must be ...".

However, the only reference I can find in the structures spec to the use of
the
value attribute is in the context of "fixed" or "default" use attribute
values.

Further, the above definition in XMLSpy validates an instance document
having a "foo" attribute with a value other than "r2". According to them,

"required" means only, that this attribute must be present, but it does not
mean, that the required value of this attribute is "r2", which is only a
default value in this case.


I would appreciate some clarification as to

1. Whether my requirement is inforcable with XML schemas
2. Whether I am expressing my requirement correctly
3. Where the structures spec dictates the interpretation of the value
attribute in the context of a use attribute having a value of "required"


Regards
Michael

Received on Wednesday, 22 November 2000 19:44:34 UTC