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 
useful.

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

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