Hi,
I have a schema with the following in it:
<xs:complexType name="RBSConnection_Type">
<xs:sequence>
<xs:element name="ConfigurationType" >
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="RNC_RBS"/>
<xs:enumeration value="RNC_CC_RBS"/>
<xs:enumeration value="RNC_X_RBS"/>
<xs:enumeration value="RNC_X_X_RBS"/>
<xs:enumeration value="RNC_X_CC_RBS"/>
<xs:enumeration value="RNC_CC_X_RBS"/>
<xs:enumeration value="RNC_CC_CC_RBS"/>
<xs:whiteSpace value="collapse">
</xs:whiteSpace>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PhysicalPathRedundancy">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="FULL"/>
<xs:enumeration value="PARTIAL"/>
<xs:enumeration value="FALSE"/>
<xs:whiteSpace value="collapse">
</xs:whiteSpace>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PhysicalPathRedundancyConfig">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="RNC===NE1---RBS"/>
<xs:enumeration value="RNC---NE1===RBS"/>
<xs:enumeration value="RNC===NE1---NE2---RBS"/>
<xs:enumeration value="RNC===NE1===NE2---RBS"/>
<xs:enumeration value="RNC---NE1---NE2===RBS"/>
<xs:enumeration value="RNC---NE1===NE2===RBS"/>
<xs:enumeration value="RNC---NE1===NE2---RBS"/>
<xs:enumeration value=""/>
<xs:whiteSpace value="collapse">
</xs:whiteSpace>
</xs:restriction>
</xs:simpleType>
</xs:element>
what I want to do is restrict the choice of RNC_RBS to both FULL and FALSE for PhysicalPathRedundancy and "" for PhysicalPathRedundancyConfig; restrict RNC_CC_RBS and RNC_X_RBS to PARTIAL and RNC===NE1---RBS & RNC---NE1===RBS and the rest of the configuration types to just PARTIAL and the remaining PhysicalPathRedundancyConfigs; is this possible to do in the schema?
thanks
v
I have a schema with the following in it:
<xs:complexType name="RBSConnection_Type">
<xs:sequence>
<xs:element name="ConfigurationType" >
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="RNC_RBS"/>
<xs:enumeration value="RNC_CC_RBS"/>
<xs:enumeration value="RNC_X_RBS"/>
<xs:enumeration value="RNC_X_X_RBS"/>
<xs:enumeration value="RNC_X_CC_RBS"/>
<xs:enumeration value="RNC_CC_X_RBS"/>
<xs:enumeration value="RNC_CC_CC_RBS"/>
<xs:whiteSpace value="collapse">
</xs:whiteSpace>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PhysicalPathRedundancy">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="FULL"/>
<xs:enumeration value="PARTIAL"/>
<xs:enumeration value="FALSE"/>
<xs:whiteSpace value="collapse">
</xs:whiteSpace>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PhysicalPathRedundancyConfig">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="RNC===NE1---RBS"/>
<xs:enumeration value="RNC---NE1===RBS"/>
<xs:enumeration value="RNC===NE1---NE2---RBS"/>
<xs:enumeration value="RNC===NE1===NE2---RBS"/>
<xs:enumeration value="RNC---NE1---NE2===RBS"/>
<xs:enumeration value="RNC---NE1===NE2===RBS"/>
<xs:enumeration value="RNC---NE1===NE2---RBS"/>
<xs:enumeration value=""/>
<xs:whiteSpace value="collapse">
</xs:whiteSpace>
</xs:restriction>
</xs:simpleType>
</xs:element>
what I want to do is restrict the choice of RNC_RBS to both FULL and FALSE for PhysicalPathRedundancy and "" for PhysicalPathRedundancyConfig; restrict RNC_CC_RBS and RNC_X_RBS to PARTIAL and RNC===NE1---RBS & RNC---NE1===RBS and the rest of the configuration types to just PARTIAL and the remaining PhysicalPathRedundancyConfigs; is this possible to do in the schema?
thanks
v