And use the the following to restrict protocols?

<xsd:simpleType name="Protocols">
 <xsd:list itemType="Protocol"/>
</xsd:simpleType>

<xsd:simpleType name="Protocol">
 <xsd:restriction base="xsd:string">
   <xsd:enumeration value="HTTP"/>
   <xsd:enumeration value="HTTPS"/>
   <xsd:enumeration value="FTP"/>
   <xsd:enumeration value="SMTP"/>
   <!-- and so on ... -->
 </xsd:restriction>
</xsd:simpleType>

Reply via email to