title: Use multiple patterns in an element XML
body: <p>I need to define an element with multiple patterns, like <code>gDay</code>, <code>gMonth</code>, <code>gYear</code>, <code>dateTime</code>, etc. How can I define a restriction in <strong>XSD</strong> to do that?</p>
  
  <p>Someting like this:</p>
  
  <pre><code>&lt;dates&gt;
      &lt;out&gt;2012&lt;/out&gt;
  &lt;/dates&gt;
  
  
  &lt;xs:complexType name="infodates"&gt;
          &lt;xs:sequence&gt;
              &lt;xs:element name="out" type="xs:dateTime"&amp;"xs:gMonth"/&gt;
          &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  </code></pre>
  
  <p>Thanks</p>