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

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

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 19 Feb 2001 23:27:39 +0000
To: "Bob Schloss" <rschloss@us.ibm.com>
Cc: www-xml-schema-comments@w3.org
Message-ID: <f5blmr2fe38.fsf@cogsci.ed.ac.uk>
"Bob Schloss" <rschloss@us.ibm.com> writes:

> 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.
> 
> Question:
> Was this an oversight, or a conscious design choice by the working group?

Somewhere between the two :-)  We _didn't_ consider using attribute
groups in this way.  We _did_ explicitly decide to make attributes
with use='prohibit' in the complex tyhped defintiion representation
itself, i.e. as children of <restriction>, the only way to get rid of
an inherited definition.

I'll be happy to take your input as a suggestion for v1.1.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
Received on Monday, 19 February 2001 18:27:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:49 GMT