title: jaxb doesn't generate enums with base integer
body: <p>I have following xsd:</p>
  
  <pre><code>&lt;xs:simpleType name="resultcode"&gt;
      &lt;xs:restriction base="xs:integer"&gt;
          &lt;xs:enumeration value="0" id="Approved_no_error"&gt;
              &lt;xs:annotation&gt;
                  &lt;xs:appinfo&gt;
                      &lt;jxb:typesafeEnumMember name="Approved_no_error"/&gt;
                  &lt;/xs:appinfo&gt;
              &lt;/xs:annotation&gt;
          &lt;/xs:enumeration&gt;
  </code></pre>
  
  <p>JAX-B just does nothing, no errors, no warnings just doesn't generate this class. If change base from <code>xs:integer</code> to <code>xs:string</code> then it's ok. But I need exactly integer values.</p>
  
  <p>I generate classes with maven:</p>
  
  <pre><code>&lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;jaxb2-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.3&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;AuthGateway&lt;/id&gt;
              &lt;goals&gt;
                  &lt;goal&gt;xjc&lt;/goal&gt;
              &lt;/goals&gt;
  </code></pre>
  
  <p>And question 2. JAX-B and IDE (IDEA) doesn't allow whitespaces in id attrribute. Why?</p>
  
  <p><code>&lt;xs:enumeration value="0" id="Approved_no_error"&gt;</code> - ok<br>
  <code>&lt;xs:enumeration value="0" id="Approved no error"&gt;</code> - not ok</p>
  
  <p>Is it correct behaviour?</p>