title: XSD Datatype string with restriction :max. 2 digits only numbers
body: <p>I have the requirement : max. 2 digits - only numbers , is the following code correct: </p>
  
  <pre><code>&lt;xsd:simpleType name="cstCODE"&gt;
    &lt;xsd:restriction base="xsd:string"&gt;
      &lt;xsd:pattern value="[0-9]{2}" /&gt;
      &lt;xsd:maxLength value="2" /&gt;
    &lt;/xsd:restriction&gt;
  &lt;/xsd:simpleType&gt;
  &lt;/xsd:schema&gt;
  </code></pre>