title: XSD Syntax with Restrictions and Default values
body: <p>Is this the right format for XSD integer with restrictions?  My goal is to restrict the input from 1 to 10 and default to 5. I found a lot of examples with restrictions and default. But nothing with both of them together.</p>
  
  <pre><code>&lt;xs:element name="age" default="5"&gt;
      &lt;xs:simpleType&gt;
          &lt;xs:restriction base="xs:integer"&gt;
              &lt;xs:minInclusive value="1"/&gt;
              &lt;xs:maxInclusive value="10"/&gt;
          &lt;/xs:restriction&gt;
      &lt;/xs:simpleType&gt;
  &lt;/xs:sequence&gt;
  </code></pre>