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

Re: Is a simpleType, A, that restricts a union simpleType equivalent to a simpleType, A, that is a union?

From: Michael Kay <mike@saxonica.com>
Date: Fri, 17 Jun 2011 10:48:11 +0100
Message-ID: <4DFB22DB.2080609@saxonica.com>
To: xmlschema-dev@w3.org
On 16/06/2011 18:21, Costello, Roger L. wrote:
> Is the following simpleType, B, equivalent to the above B?

As Mukul says, they are equivalent in the sense that the set of values 
accepted by one is the same as the set of values accepted by the other. 
But they are not the same type, any more than an xs:string with pattern 
[+-][0-9]+ is the same type as xs:integer.

Michael Kay
Received on Friday, 17 June 2011 09:48:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:59 UTC