title: Error: Failed to parse a schema by xjc in case of xs:choice
body: <p>I'm want to generate java classes from a schema using jaxb, but I am getting a parsing error from xjc. I have 2 elements wrapped in a choice then one of the element is again repeated just after choice:</p>
  
  <pre><code>&lt;xs:element name="A"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:choice&gt;
        &lt;xs:sequence maxOccurs="unbounded"&gt;
          &lt;xs:element ref="X"/&gt;
          &lt;xs:element ref="Y"/&gt;
        &lt;/xs:sequence&gt;
        &lt;xs:element ref="Y"/&gt;
      &lt;/xs:choice&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
  </code></pre>
  
  <p>jaxb is throwing:</p>
  
  <pre><code>[ERROR] Element "{*something*}Y" shows up in more than one properties.
   line *something* of file:/*something*.xsd
  </code></pre>
  
  <p>PS: my jaxb version is 2.1.13</p>