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

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 UTC