title: How do I have a XSD complextype with *simple content* that has a restriction with enum values AND an extension
body: <p>So how do I have a XSD complextype with <em>simple content</em> that has a restriction with enum values?</p>
  
  <p>(!) Without an additional extra simple type:</p>
  
  <p><em>so ... kind of like this: -- only working ;)</em>
  (please note that this a simplified example. see the xml I like to achieve)</p>
  
  <pre><code>        &lt;element name="question"&gt;
              &lt;complexType&gt;
                  &lt;simpleContent&gt;
                              &lt;enumeration value="no"&gt;&lt;/enumeration&gt;
                              &lt;enumeration value="maybe"&gt;&lt;/enumeration&gt;
                              &lt;enumeration value="yes"&gt;&lt;/enumeration&gt;
                              &lt;xs:attribute name="name" type="xs:string" /&gt;
                      &lt;/extension&gt;
                  &lt;/simpleContent&gt;
              &lt;/complexType&gt;
          &lt;/element&gt;
  </code></pre>
  
  <p>-- </p>
  
  <p>in the end this is a mock of the xml I have:</p>
  
  <pre><code>&lt;question name="foo"&gt;
      yes
  &lt;/question&gt;
  </code></pre>
  
  <p>ref: <a href="http://www.w3schools.com/schema/el_simpleContent.asp" rel="nofollow">http://www.w3schools.com/schema/el_simpleContent.asp</a></p>