mff-uk / dataspecer

https://dataspecer.com
MIT License
22 stars 7 forks source link

When referencing two data structures, only one is imported in XSD #711

Open jakubklimek opened 2 days ago

jakubklimek commented 2 days ago

This specification re-uses two data structures - person and physical person. However, in the resulting XSD, only one of them is imported.

sstenchlak commented 2 days ago

The issue is that imported data structures share the same namespace and namespace prefix. If you make them different, it should work. I am not sure whether this is legal and hence bug in Dataspecer, or not.

jakubklimek commented 2 days ago

Actually, I originally thought the same thing and had the mention of the namespace in the issue. But it is not the cause, as when I change one of the namespaces (at least their IRIs, I did not try the prefixes), the bug remains. In any case, in XML, it is legal (the designer needs to be aware of potential conflicts), hence a bug in Dataspecer.