wmo-im / iwxxm

XML schema and Schematron for aviation weather data exchange
https://old.wmo.int/wiswiki/tiki-index.php%3Fpage=TT-AvXML
48 stars 22 forks source link

[iwxxm-collect] conflicting element names in v3.1 (rc) #279

Closed kcris closed 2 years ago

kcris commented 2 years ago

Trying to consume the 2021-2RC1 iwxxm schemas (via java generator) I noticed that when loading iwxxm-collect.xsd conflicting element names are detected

for example

this is part of wafssigwxfc.xsd

    <element name="Volcano" type="iwxxm:VolcanoType" substitutionGroup="gml:AbstractGML"> ...

and this is part of phenomena.xsd

        <element name="Volcano" type="metce:VolcanoType" substitutionGroup="gml:AbstractFeature"> ...

edit: namespace is not the same so this is only a problem with the generating side closing as invalid

blchoy commented 2 years ago

They are different.

wafssigwxfc.xsd is part of IWXXM while phenomena.xsd is part of METCE, and they are under different namespaces (viz http://icao.int/iwxxm/2021-2 and http://def.wmo.int/metce/2013).

You are right as the path of the java-bindings should be properly managed.