title: XML Schema Case Insensitive Enumeration of Simple Type String
body: <p>I am in need of a case insensitive string enumeration type in my XML schema (.xsd) file. I can get case insensitive by doing the following.</p>
  
  <pre><code>&lt;xs:simpleType name="setDigitalPointType"&gt;
      &lt;xs:restriction base="xs:string"&gt;
          &lt;xs:pattern value="[Oo][Nn]" /&gt;
          &lt;xs:pattern value="[Oo][Ff][Ff]" /&gt;
      &lt;/xs:restriction&gt;
  &lt;/xs:simpleType&gt;
  </code></pre>
  
  <p>The only problem is that I get no enumeration values. I will not get the nice intellesense  when using Visual Studio to write my XML. The following will give me enumerations but it is case sensitive.</p>
  
  <pre><code>&lt;xs:simpleType name="setDigitalPointType"&gt;
      &lt;xs:restriction base="xs:string"&gt;
          &lt;xs:enumeration value="on" /&gt;
          &lt;xs:enumeration value="off" /&gt;
      &lt;/xs:restriction&gt;
  &lt;/xs:simpleType&gt;
  </code></pre>
  
  <p>This will give me my enumerations but if I ever receive a value of "On", "ON", or "oN" it will fail verification.</p>
  
  <p>I want enumeration of "on", "off" and allow entry of case insensitive versions.</p>