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

Attribute Wildcards

From: Michael Kay <mhk@mhk.me.uk>
Date: Fri, 2 Apr 2004 23:39:24 +0100
To: <xmlschema-dev@w3.org>
Message-Id: <20040402224011.7B36AA0968@frink.w3.org>

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 Friday, 2 April 2004 17:40:11 UTC

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