W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2009

RE: Reg. <all> model group extension

From: Michael Kay <mike@saxonica.com>
Date: Mon, 30 Nov 2009 15:11:09 -0000
To: "'Pete Cordell'" <petexmldev@codalogic.com>, "'bharath'" <bharathkr@huawei.com>, <xmlschema-dev@w3.org>
Cc: <rajithr@huawei.com>, <arathikarki@huawei.com>
Message-ID: <CC45D60658E34BE69B0EC5BA438F791F@Sealion>
 
> 
> 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:11:41 GMT

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