Suppose I have a simple type which is enumeration
<xs:simpleType name="fontStyle">
<xs:restriction base="xs:string">
<xs:enumeration value="bold" />
<xs:enumeration value="italic" />
<xs:enumeration value="underlined" />
<xs:enumeration value="strikeout" />
</xs:restriction>
</xs:simpleType>
I want a type which is any combination of the above, so I write
<xs:simpleType name="fontStyleLst">
<xs:list itemType="fontStyle"/>
</xs:simpleType>
But, this will also allow combinations like "bold italic bold". Which has no
sense.
I would like each possible value to be allowed only once in the list.
Is their a way to write down this restriction in XSD?