> -----Original Message----- > From: Asir S Vedamuthu [mailto:asirv@webmethods.com] > Sent: Thursday, June 06, 2002 5:09 AM > To: xmlschema-dev@w3.org > Subject: [XSV and XML Spy] mixed="true" and <simpleContent/> > > Hi, > > <xsd:complexType name="a" mixed="true"> > <xsd:simpleContent> > <xsd:extension base="xsd:string"/> > </xsd:simpleContent> > </xsd:complexType> > > This fragment is a complex type with simple and mixed > content. I do not believe that this combination is valid. > However, XSV and XML Spy say that it is valid. Did anyone > else bump into this? > What part of the W3C XML Schema recommendation do you think makes this invalid? I looked at section 3.4 of the Structures document[0] and couldn't find any place where having a mixed attribute with the value of true and a complexType with simpleContent is disallowed. Furthermore the rules for determining the {content type} of the complexType are fairly unambiguous. The simpleType derivation takes precedence over the mixed attribute (which in fact is ignored and not factored in at all in determining the content type). [0] http://www.w3.org/TR/xmlschema-1/#Complex_Type_Definitions -- PITHY WORDS OF WISDOM Never eat yellow snow. This posting is provided "AS IS" with no warranties, and confers no rights.Received on Thursday, 6 June 2002 11:28:00 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:31 GMT