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

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

From: Costello, Roger L. <costello@mitre.org>
Date: Thu, 16 Jun 2011 13:21:34 -0400
To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-ID: <9E51F88D5247B648908850C35A3BBB500595F85EA7@IMCMBX3.MITRE.ORG>
Hi Folks,

This simpleType, B, restricts the simpleType, A, which is a union type: 
    
    <xsd:simpleType name="B">
        <xsd:restriction base="A" />
    </xsd:simpleType>

    <xsd:simpleType name="A">
        <xsd:union memberTypes="xsd:int xsd:boolean" />
    </xsd:simpleType>

Is the following simpleType, B, equivalent to the above B?

    <xsd:simpleType name="B">
        <xsd:union memberTypes="xsd:int xsd:boolean" />
    </xsd:simpleType>

/Roger
Received on Thursday, 16 June 2011 17:22:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 16 June 2011 17:22:19 GMT