RE: Reg. <all> model group extension

Hi Pete Cordell/ Michek Kay

Thanks for your reply. 
Can you please tell me where I can find this limitation of <all> extension
in xml schema specification.


Thanks and Regards,
Bharath.


-----Original Message-----
From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On
Behalf Of Michael Kay
Sent: Monday, November 30, 2009 8:41 PM
To: 'Pete Cordell'; 'bharath'; xmlschema-dev@w3.org
Cc: rajithr@huawei.com; arathikarki@huawei.com
Subject: RE: Reg. <all> model group extension

 
> 
> I don't believe you are allowed to extend xs:all in XSD 1.0.  
> This has been relaxed in the upcoming 1.1.

Correct (thanks for spotting this, Pete).

After fixing a couple of typos (bad XML end tags), I get the following from
Saxon 9.2 running with -xsdversion:1.0:

Error on line 15 of test.xsd:
  The type DerivedType is defined with xs:all so (in XSD 1.0) it cannot be
derived by
  extension from a non-empty type
Schema processing failed: The schema is invalid

but with -xsdversion:1.1 I get:

Schema checking successful.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

Received on Monday, 30 November 2009 15:23:58 UTC