W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2001

<attributeGroup ref="..." use="prohibited"/> not in spec

From: Bob Schloss <rschloss@us.ibm.com>
Date: Mon, 19 Feb 2001 16:44:02 -0500
To: www-xml-schema-comments@w3.org
Message-ID: <OF81EFDA52.A68D7D93-ON852569F8.0076E527@pok.ibm.com>
I think that schema writers would expect the same control over derived
complexTypes whether the base type contributes attributes
* individually (with <attribute> element info items), or
* with a named attribute group (with <attributeGroup ref="groupName">).

So it seems a little asymmetrical that one is allowed to write <attribute
name="a" use="prohibited"> but one is not allowed to write <attributeGroup
ref="groupName" use="prohibited"> to mean: none of the attributes which are
part of that group should appear when this derived complexType is used.

Was this an oversight, or a conscious design choice by the working group?

Thank you,
Bob Schloss
IBM Thomas J. Watson Research Center
Received on Monday, 19 February 2001 16:45:25 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:54 UTC