Closed winglian closed 2 years ago
Hi,
this is due to an error in XMLSchemaBase.simple_type_factory()
when determine the name of the new type:
this line has to be fixed using the target namespace of the schema associated to xsd_type:
xsd_type.name = get_qname(schema.target_namespace, elem.attrib['name'])
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'
.
Thank you
Fixed by release v1.9.2.
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!