Altova Mailing List Archives

restriction against base type (choice - elt)

From: Bharath Kumar Reddy T <bharathkr@------.--->
To: xmlschema-dev@--.---
Date: 1/27/2009 4:22:00 PM
According to specification the following schema is invalid since according
to the table in 
it is given that the case "choice (Derived particle) to element(Base
Particle) is Forbidden"
<xs:schema xmlns:xs="">
<xs:element name="head"/>
<xs:element name="m1" substitutionGroup="head"/>
<xs:element name="m2" substitutionGroup="head"/>
<xs:complexType name="base">
  <xs:element ref="head"/>
<xs:complexType name="derived">
  <xs:restriction base="base">
             <xs:element ref="m1"/>
             <xs:element ref="m2"/>

Can anybody please tell me whether the above schema is valid or invalid
against the schema spec.
Thanks and Regards,


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.