Adding attributes to anyType
"Simon Cox" <[email protected]>
| Newsgroups | gmane.text.xml.schema.devel |
|---|---|
| Message-ID | <[email protected]> |
Some colleagues are proposing a schema within which attributes are added to
xs:anyType using the XSD extension mechanism.
For example
<complexType name="NewType">
<complexContent>
<extension base="anyType">
<attribute name="att1" type="string"/>
</extension>
</complexContent>
</complexType>
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:[email protected]> mailto:[email protected]
<http://ies.jrc.ec.europa.eu/simon-cox>
http://ies.jrc.ec.europa.eu/simon-cox
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.