W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2012

Re: Supporting incremental-definition of a type?

From: Michael Kay <mike@saxonica.com>
Date: Mon, 18 Jun 2012 22:47:09 +0100
Message-ID: <4FDFA1DD.6040809@saxonica.com>
To: Mukul Gandhi <gandhi.mukul@gmail.com>
CC: xmlschema-dev@w3.org

>> I think it would have been much better if we had allowed assertions to be
>> defined within an<xs:extension>
> I think, this is allowed presently by the XSD 1.1 language.
Of course. Not sure how I overlooked that. So if I have a type A and I 
want to define a type B that restricts A with an assertion, the simplest 
way is to define B as a "vacuous extension" of A. Non-obvious, but very 

Michael Kay
Received on Monday, 18 June 2012 21:47:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:16:01 UTC