- From: Keith Suderman <suderman@cs.vassar.edu>
- Date: Mon, 29 Nov 2004 16:24:43 -0500
- To: xmlschema-dev@w3.org
Received on Monday, 29 November 2004 21:26:01 UTC
At 06:35 PM 11/26/2004 +0800, Simon.Cox@csiro.au wrote: ><complexType name="typeA"> > <attribute name="att1" type="string"/> ></complexType> > >or ... ><complexType name="typeA"> > <complexContent> > <restriction base="anyType"> > <sequence/> > <attribute name="att1" type="string"/> > </restriction> > </complexContent> ></complexType> I can't find anything to back up this assertion, but I had always thought these two definitions were the "same", that is, they both define an empty element with an attribute. At least I use the first definition in our schemas and it seems to behave as I want/expect. Cheers, Keith -------------------------------------------------- Keith Suderman American National Corpus suderman@cs.vassar.edu http://americannationalcorpus.org
Received on Monday, 29 November 2004 21:26:01 UTC