gpm1kor
03-03-2010, 12:25 AM
Hello All,
I have a problem in setting mutually exclusive values to the diffrent ports of perticular type
Example
<xs:element name="TcpPort" type="SocketPortValue"/>
<xs:element name="UDPPort" type="SocketPortValue"/>
<xs:element name="TelnetPort" type="SocketPortValue"/>
<xs:simpleType name="SocketPortValue">
<xs:restriction base="xs:integer">
<xs:enumeration value="4000"/>
<xs:enumeration value="4001"/>
<xs:enumeration value="4002"/>
</xs:restriction>
</xs:simpleType>
from the above example there is possibality to assign same value to two diffrent port (TCP/UDP) how we can avoid it.
your help will be greatly appreciated
Regards
Gopalakrishna .M
I have a problem in setting mutually exclusive values to the diffrent ports of perticular type
Example
<xs:element name="TcpPort" type="SocketPortValue"/>
<xs:element name="UDPPort" type="SocketPortValue"/>
<xs:element name="TelnetPort" type="SocketPortValue"/>
<xs:simpleType name="SocketPortValue">
<xs:restriction base="xs:integer">
<xs:enumeration value="4000"/>
<xs:enumeration value="4001"/>
<xs:enumeration value="4002"/>
</xs:restriction>
</xs:simpleType>
from the above example there is possibality to assign same value to two diffrent port (TCP/UDP) how we can avoid it.
your help will be greatly appreciated
Regards
Gopalakrishna .M