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

Adding attributes to anyType

From: Simon Cox <simon.cox@jrc.ec.europa.eu>
Date: Fri, 9 Apr 2010 18:56:02 +0200
To: <xmlschema-dev@w3.org>
Message-ID: <5DDCF29868B54C87BA79D21DEC51BFD7@H07.jrc.it>
Some colleagues are proposing a schema within which attributes are added to
xs:anyType using the XSD extension mechanism. 
For example 
<complexType name="NewType">
    <extension base="anyType">
      <attribute name="att1" type="string"/>

I don't see how this makes sense, since anyType is an infinite set, so all
specific content models must be derived by restriction. 
But Xerces (in oXygen) doesn't complain. 
Is Xerces wrong or am I mistaken?

Simon Cox

European Commission, Joint Research Centre 
Institute for Environment and Sustainability 
Spatial Data Infrastructures Unit, TP 262 
Via E. Fermi, 2749, I-21027 Ispra (VA), Italy 
Tel: +39 0332 78 3652 
Fax: +39 0332 78 6325 
 <mailto:simon.cox@jrc.ec.europa.eu> mailto:simon.cox@jrc.ec.europa.eu 

SDI Unit:  <http://sdi.jrc.ec.europa.eu/> http://sdi.jrc.ec.europa.eu/ 
IES Institute:  <http://ies.jrc.ec.europa.eu/> http://ies.jrc.ec.europa.eu/ 
JRC:  <http://www.jrc.ec.europa.eu/> http://www.jrc.ec.europa.eu/



Any opinions expressed are personal unless otherwise indicated. 
Received on Friday, 9 April 2010 16:56:38 UTC

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