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

RE: Question on <openContent> and <anyAttribute>

From: Rod Hughes <rod_hughes@yahoo.com>
Date: Mon, 24 Mar 2008 13:43:23 +0000
To: "'Sandy Gao'" <sandygao@ca.ibm.com>
Message-Id: <881A7CC5-C567-420E-AED3-CA9147931E7C@yahoo.com>
Cc: <www-xml-schema-comments@w3.org>
Thanks Sandy...I appreciate the response.  I hadn't read over the  
full doc yet and had missed the defaultAttribute.  So with  
defaultAttribute, it looks like I can just define an attribute group  
that includes <anyAttribute> and all is well.

In some ways, it might have made sense if <anyAttribute> was allowed  
in <openContent> so that <openContent> could control all open content  
(elements and attributes) while defaultAttribute was only for  
specific attribute groups (even if they include <anyAttribute>), but  
in the end as long as XML Schema 1.1 is providing open content for  
both elements and attributes then I'm happy :-)

Thanks again,

From: Sandy Gao [mailto:sandygao@ca.ibm.com]
Sent: Wednesday, March 19, 2008 5:11 PM
To: Rod Hughes
Cc: www-xml-schema-comments@w3.org
Subject: Re: Question on <openContent> and <anyAttribute>


Search for "defaultAttributes". :-)

It's a valid question whether <openContent> and "defaultAttributes"  
should be combined, but the capability is there.

We went further than just allowing default <anyAttribute>, because  
there are cases where people need to allow specific attributes  
everywhere (e.g. xml: ones).

Sandy Gao
XML Technologies, IBM Canada
Editor, W3C XML Schema WG
Member, W3C SML WG
(1-905) 413-3255 T/L 313-3255

Rod Hughes <rod_hughes@yahoo.com>
Sent by: www-xml-schema-comments-request@w3.org
2008-03-07 04:16 PM

Question on <openContent> and <anyAttribute>


The addition of the <openContent> element in XSDL 1.1 is wonderful
and will greatly simplify extending XML Schemas.

However, I was wondering why the <openContent> element doesn't allow
for <anyAttribute> to be specified as well as <any> so that XML
Schemas can be easily extended with new attributes just at they can
now be easily extended with new elements?  It is certainly much more
common for new elements to be added, so I'm definitely thankful to
have <openContent> available at all, but I'm just curious why
<anyAttribute> support wasn't included as well.

Thanks and best regards,
Rod Hughes
Received on Monday, 24 March 2008 19:54:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:07 UTC