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: Mukul Gandhi <gandhi.mukul@gmail.com>
Date: Fri, 17 Jun 2011 09:22:17 +0530
Message-ID: <BANLkTinkon4qDKszhgTaB3D7_4bRmgvs8w@mail.gmail.com>
To: "Costello, Roger L." <costello@mitre.org>
Cc: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
On Thu, Jun 16, 2011 at 10:51 PM, Costello, Roger L. <costello@mitre.org> wrote:
> Is the following simpleType, B, equivalent to the above B?
>
>    <xsd:simpleType name="B">
>        <xsd:union memberTypes="xsd:int xsd:boolean" />
>    </xsd:simpleType>


I think yes from the perspective of the validation capabilities
available to both "B" types (the value space of both these B's is
same, since we don't do anything in the restriction [within the first
B] to constrain the value space further -- it's just cosmetic).

But from the point of view of the schema components generated for both
these case, I think these two types would be considered different, at
least I think their base types are different (the base type of first B
is A, while base type of second B is anySimpleType I think).




-- 
Regards,
Mukul Gandhi
Received on Friday, 17 June 2011 03:53:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 17 June 2011 03:53:05 GMT