New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal inheritance due to double inheritance #238

Closed
choeger opened this Issue Feb 8, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@choeger

choeger commented Feb 8, 2014

The following xsd snippet yields an illegal inheritance error, because DefaultGeneratedPartu45listFormat inherits GeneratedPartu45groupGroupFormat twice.

<xs:schema targetNamespace="http://www.example.com/music"
        elementFormDefault="qualified"
        xmlns="http://www.example.com/music"
        xmlns:xs="http://www.w3.org/2001/XMLSchema"
        xmlns:music="http://www.example.com/music">
  <xs:complexType name="part-list">
      <xs:sequence>
          <xs:group ref="part-group" minOccurs="0" maxOccurs="unbounded"/>
          <xs:group ref="score-part"/>
          <xs:choice minOccurs="0" maxOccurs="unbounded">
              <xs:group ref="part-group"/>
              <xs:group ref="score-part"/>
          </xs:choice>
      </xs:sequence>
  </xs:complexType>

  <xs:group name="part-group">
    <xs:sequence>
      <xs:element name="part" type="xs:string"/>
    </xs:sequence>
  </xs:group>

  <xs:group name="score-part">
    <xs:sequence>
      <xs:element name="score" type="xs:string"/>
    </xs:sequence>
  </xs:group>
</xs:schema>

@eed3si9n eed3si9n changed the title from Illegal inheritance due to to Illegal inheritance due to double inheritance Jun 14, 2014

@eed3si9n eed3si9n added the bug label Jun 14, 2014

@eed3si9n eed3si9n added this to the 1.2.0 milestone Jun 14, 2014

@eed3si9n eed3si9n closed this in c14be18 Jun 14, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment