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.


Michael Kay
Received on Monday, 30 November 2009 15:11:41 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:17 UTC