title: derivation-ok-restriction : The particle of the type is not a valid restriction of the particle of the base
body: <p>I defined the ComplexType bellow :</p>
  
  <pre><code>&lt;xs:element name="abstractForm" type="abstractFormType" abstract="true"/&gt;
  &lt;xs:complexType name="abstractFormType" abstract="true"&gt;
      &lt;xs:sequence&gt;
          &lt;xs:any minOccurs="0" maxOccurs="unbounded"/&gt;
      &lt;/xs:sequence&gt;
      &lt;xs:attribute name="id-form" type="xs:NCName"/&gt;
      &lt;xs:attribute name="select"/&gt;
      &lt;xs:anyAttribute/&gt;
  &lt;/xs:complexType&gt;
  </code></pre>
  
  <p>But after that in the code, every time I add a ComplexType I have this error : <code>derivation-ok-restriction : The particle of the type is not a valid restriction of the particle of the base.</code></p>
  
  <p>Exemple :</p>
  
  <pre><code>&lt;xs:element name="abstractNewForm" type="abstractNewFormType" abstract="true"
          substitutionGroup="abstractForm"/&gt;
  &lt;xs:complexType name="abstractNewFormType" abstract="true"&gt;
      &lt;xs:complexContent&gt;
          &lt;xs:restriction base="abstractFormType"&gt;
              &lt;xs:sequence&gt;
                  &lt;xs:sequence&gt;
                      &lt;xs:element name="customize" minOccurs="0" type="abstractCustomizeType"/&gt;
                  &lt;/xs:sequence&gt;
                  &lt;xs:sequence&gt;
                      &lt;xs:element name="positions" minOccurs="0" type="abstractPositionsType"/&gt;
                  &lt;/xs:sequence&gt;
              &lt;/xs:sequence&gt;
              &lt;xs:attribute name="id-form" type="xs:NCName" use="required"/&gt;
              &lt;xs:attribute name="select"/&gt;
              &lt;xs:anyAttribute/&gt;
              &lt;/xs:restriction&gt;
      &lt;/xs:complexContent&gt;
  &lt;/xs:complexType&gt;
  </code></pre>
  
  <p>Someone has an idea ? :)</p>