W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2001

Re: error in specifications?

From: Asir S Vedamuthu <asirv@webmethods.com>
Date: Wed, 28 Mar 2001 10:49:15 -0500
Message-ID: <003001c0b79e$a452cee0$0846010a@webmethods.com>
To: "Forge" <forge@neonics.com>, <xmlschema-dev@w3.org>
> Which means to me that the following is valid:
>
> <xsd:complexType name="bla">
>   <xsd:simpleContent>
>     <xsd:restriction ....>
>   </xsd:simpleContent>
>   <xsd:attribute name="..."/>
> </xsd:complexType>

Nope. It is not valid. 'Cos,

>   Content: (annotation?, (simpleContent | complexContent | ((group | all |
> choice | sequence)?, ((attribute | attributeGroup)*, anyAttribute?))))

If you observe this content model spec carefully, you would find the
following 3 combinations,

annotation?, simpleContent
annotation?, complexContent
annotation?, ((group | all | choice | sequence)?,
        ((attribute | attributeGroup)*, anyAttribute?))

Regards, Asir
Received on Wednesday, 28 March 2001 10:48:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:20 GMT