Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linking enumeration values

Status
Not open for further replies.

vinnie10t

Programmer
Joined
Jul 27, 2004
Messages
1
Location
SE
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top