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

Attribute Wildcards (another try)

From: Michael Kay <mhk@mhk.me.uk>
Date: Thu, 15 Apr 2004 19:15:48 +0100
To: <xmlschema-dev@w3.org>
Message-Id: <20040415181555.59D83A1277@frink.w3.org>

I submitted the following question a couple of weeks ago and got no
response. Perhaps the people who know were on holiday, so I'll try again...

Normally, if a complex type references two attribute groups, then the
attributes permitted on an element are the union of those permitted by the
two attribute groups.

But if the two attribute groups both contain attribute wildcards, the
attributes permitted  are the intersection of what's allowed by the two
wildcards (i.e. an attribute has to match both).

However, if one complex type containing an attribute wildcard extends
another complex type also containing an attribute wildcard, then the
attributes permitted are the union of what's allowed by the two wildcards.

Have I got it right?

And if so, can someone please explain the reasoning?

Michael Kay
Received on Thursday, 15 April 2004 14:15:55 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:04 UTC