Re: Attribute Fixed and Prohibited

Hi Stanley,

> Is the following a valid attribute declaration?
>   <xs:attribute name="domain" type="xs:positiveInteger" use="prohibited"
>    fixed="123"/>
> If not, where does it state that in the spec.?

From what I can tell, I think that it's a valid *local* attribute
declaration (it's not a valid global attribute declaration, because
you can't have a use attribute on a global attribute declaration).
However, because it doesn't actually correspond to any component, the
type and fixed attributes aren't doing anything, and it's exactly the
same as:

  <xs:attribute name="domain" use="prohibited" />

I don't know why there isn't a constraint that bans attributes aside
from ref and name when use equals prohibited, but there doesn't seem
to be.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

Received on Monday, 1 April 2002 11:29:33 UTC