You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to load this XSD but I get the error below. I've been able to load this Schema with another library such as pyxb, so I'm not sure what I'm doing wrong here. My gut says it may be a bug where the library thinks that it's a self reference in the ERM namespace when in fact its a reference to another definition in the avs namespace. Any help is greatly appreciated. Thanks!
XMLSchemaParseError: wrong definition with self-reference:
Schema:
<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="AllTerritoryCode">
<xs:annotation>
<xs:documentation source="ddex:Definition">A Composite containing details of a
TerritoryCode.</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="avs:AllTerritoryCode">
<xs:attribute name="IdentifierType" type="avs:TerritoryCodeTypeIncludingDeprecatedCodes">
<xs:annotation>
<xs:documentation source="ddex:Definition">A standard used for the TerritoryCode.
This is represented in an XML schema as an XML Attribute. If this Attribute is
not provided, it is assumed that the code is a TerritoryCode in accordance with
ISO 3166-1 Alpha 2 standard (or Worldwide).</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
Path: /xs:schema/xs:complexType[58]
The text was updated successfully, but these errors were encountered:
usually the xsd_type.name is not checked so this error has no caused problems until now, but in these schemas the other namespace has a derivation from a simple type with the same local name that raises an error.
This fix will be included in the next release. Until that you can patch on your installed package or build the schema providing validation='lax'.
I'm trying to load this XSD but I get the error below. I've been able to load this Schema with another library such as pyxb, so I'm not sure what I'm doing wrong here. My gut says it may be a bug where the library thinks that it's a self reference in the ERM namespace when in fact its a reference to another definition in the avs namespace. Any help is greatly appreciated. Thanks!
The text was updated successfully, but these errors were encountered: