Skip to content
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

Null pointer exception because of unknown simple type #11

Open
ghost opened this issue Mar 9, 2016 · 0 comments
Open

Null pointer exception because of unknown simple type #11

ghost opened this issue Mar 9, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 9, 2016

it seems that the parser doesn't add simple types so they cannot be refereneced later from complex types, examples from lom.xsd

 <xs:simpleType name="t_CharacterString">
    <xs:restriction base="xs:string"/>
  </xs:simpleType>
  <!-- LanguageId -->
  <xs:simpleType name="t_LanguageIdOrNone">
    <xs:union memberTypes="t_LanguageId t_LanguageIdNone"/>
  </xs:simpleType>
  <xs:simpleType name="t_LanguageId">
    <xs:restriction base="xs:language"/>
  </xs:simpleType>
  <xs:simpleType name="t_LanguageIdNone">
    <xs:restriction base="xs:token">
      <xs:enumeration value="none"/>
    </xs:restriction>
  </xs:simpleType>
  <!-- VCard -->
  <xs:simpleType name="t_VCard">
    <xs:restriction base="t_CharacterString"/>
  </xs:simpleType>
  <!-- MimeType -->
  <xs:simpleType name="t_MimeType">
    <xs:restriction base="t_CharacterString"/>
  </xs:simpleType>
  <!-- Size -->
  <xs:simpleType name="t_Size">
    <xs:restriction base="xs:nonNegativeInteger"/>
  </xs:simpleType>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants