If I have a type restricted by enumeration intellisense correctly suggests the possible choices in a dropdown.
Now I have a type in my XML schema which is restricted by an enumeration and also by a pattern (union).
It means that mostly I use the enumeration values, but sometimes I have to write something different.
In the second case intellisense does not open a dropdown.
I think it would be usefull to have the enumeration choices in a dropdown also in this case.
Is it possible?
<xs:simpleType name="TypeForExistsEnumeration">
<xs:restriction base="xs:string" >
<xs:enumeration value="T"/>
<xs:enumeration value="F"/>
<xs:enumeration value="[r_Show]"/>
<xs:enumeration value="[r_Edit]"/>
<xs:enumeration value="[r_New]"/>
<xs:enumeration value="[r_Edit,r_New]"/>
<xs:enumeration value="[r_Auth]"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="TypeForExistsOther">
<xs:restriction base="xs:string" >
<xs:pattern value="[A-Za-z0-9_/\.,]+"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="TypeForExists">
<xs:union memberTypes="TypeForExistsEnumeration TypeForExistsOther"/>
</xs:simpleType>
<xs:attribute name="Exists" default="T" type="TypeForExists" />
Now I have a type in my XML schema which is restricted by an enumeration and also by a pattern (union).
It means that mostly I use the enumeration values, but sometimes I have to write something different.
In the second case intellisense does not open a dropdown.
I think it would be usefull to have the enumeration choices in a dropdown also in this case.
Is it possible?
<xs:simpleType name="TypeForExistsEnumeration">
<xs:restriction base="xs:string" >
<xs:enumeration value="T"/>
<xs:enumeration value="F"/>
<xs:enumeration value="[r_Show]"/>
<xs:enumeration value="[r_Edit]"/>
<xs:enumeration value="[r_New]"/>
<xs:enumeration value="[r_Edit,r_New]"/>
<xs:enumeration value="[r_Auth]"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="TypeForExistsOther">
<xs:restriction base="xs:string" >
<xs:pattern value="[A-Za-z0-9_/\.,]+"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="TypeForExists">
<xs:union memberTypes="TypeForExistsEnumeration TypeForExistsOther"/>
</xs:simpleType>
<xs:attribute name="Exists" default="T" type="TypeForExists" />