Schema problem with nested CDTs

I have some nested CDTs and sudenly got problems with "missing definitions" although all CDTs have the same namespace.

The problem can be reproduced by using the following xsds (it should throw a nerror when importing the xsd for the type "Standort"):

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:com:appian:types:BF" targetNamespace="urn:com:appian:types:BF">
  <xsd:include schemaLocation="%7Burn%3Acom%3Aappian%3Atypes%3ABF%7DBF_Land.xsd" />

  <xsd:complexType name="BF_Standort">
    <xsd:annotation>
      <xsd:documentation><![CDATA[Datentyp für Standorte.]]></xsd:documentation>
    </xsd:annotation>
    <xsd:sequence>
      <xsd:element name="id" nillable="true" type="xsd:int">
        <xsd:annotation>
          <xsd:appinfo source="appian.jpa">@Id @GeneratedValue</xsd:appinfo>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="name" nillable="true" type="xsd:string">
        <xsd:annotation>
          <xsd:appinfo source="appian.jpa">@Column(length=255)</xsd:appinfo>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="land" nillable="true" type="tns:BF_Land">
        <xsd:annotation>
          <xsd:appinfo source="appian.jpa">@ManyToOne(cascade=CascadeType.REFRESH)</xsd:appinfo>
        </xsd:annotation>
      </xsd:element>
    </xsd:sequence>
  </xsd:complexType>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:com:appian:types:BF" targetNamespace="urn:com:appian:types:BF">
  <xsd:complexType name="BF_Land">
    <xsd:annotation>
      <xsd:documentation><![CDATA[Datentyp für Länder]]></xsd:documentation>
    </xsd:annotation>
    <xsd:sequence>
      <xsd:element name="id" nillable="true" type="xsd:int">
        <xsd:annotation>
          <xsd:appinfo source="appian.jpa">@Id @GeneratedValue</xsd:appinfo>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="name" nillable="true" type="xsd:string">
        <xsd:annotation>
          <xsd:appinfo source="appian.jpa">@Column(length=255)</xsd:appinfo>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="code2" nillable="true" type="xsd:string">
        <xsd:annotation>
          <xsd:appinfo source="appian.jpa">@Column(length=2)</xsd:appinfo>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="code3" nillable="true" type="xsd:string">
        <xsd:annotation>
          <xsd:appinfo source="appian.jpa">@Column(length=3)</xsd:appinfo>
        </xsd:annotation>
      </xsd:element>
    </xsd:sequence>
  </xsd:complexType>
</xsd:schema>

  Discussion posts and replies are publicly visible

Parents Reply Children