I somehow don't manage to restrict an imported complex type: I keep getting a "derivation-ok-restriction.5.4.2: Error for type "RestrictedMapData. The particle of the type is not a valid restriction of the particle of the base." error on the following code.
Any ideas?
(The imported schema E142 does not restrict derivation; if I put the same derivation type into the original file, everything is fine...)
Thanks for your help! Stefan
Code: Select all
<?xml version="1.0" ?>
<xs:schema id="MapData" targetNamespace="urn:semi-org:xsd.E142-1.V0805.SubstrateMap_ACMEProductsInc"
xmlns:sm="urn:semi-org:xsd.E142-1.V0805.SubstrateMap" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="urn:semi-org:xsd.E142-1.V0805.SubstrateMap_ACMEProductsInc" elementFormDefault="qualified">
<xs:import namespace="urn:semi-org:xsd.E142-1.V0805.SubstrateMap"
schemaLocation="E142-1-V0805-Schema.xsd"/>
<xs:complexType name="RestrictedMapData">
<xs:complexContent>
<xs:restriction base="sm:MapDataType">
<xs:sequence>
<xs:element minOccurs="0" name="Substrates" type="sm:SubstratesType"/>
<xs:element minOccurs="0" name="SubstrateMaps" type="sm:SubstrateMapsType"/>
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:schema>