xtceview incompatible with latest (1.2) schema/namespace?
My XTCE database uses the XTCE 1.2 namespace URI http://www.omg.org/spec/XTCE/20180204
, with schema located at https://www.omg.org/spec/XTCE/20180204/SpaceSystem.xsd. This matches the targetNamespace
of that XSD, as it should. However, xtceview seems to want to enforce a namespace URI of http://www.omg.org/space/xtce
, which is the old targetNamespace
for v1.1 (located at https://www.omg.org/spec/XTCE/20061101/06-11-06.xsd). When I open my file, I get the following fatal error:
ERROR: XML Schema Compliance Fatal: ( line 5 column 119 ) unexpected element (uri:"http://www.omg.org/spec/XTCE/20180204", local:"SpaceSystem"). Expected elements are <{http://www.omg.org/space/xtce}SpaceSystem>,<{http://www.w3.org/2001/XInclude}fallback>,<{http://www.w3.org/2001/XInclude}include>
A possible kludge would be to change my namespace URI to http://www.omg.org/space/xtce
and just leave it pointing to the 1.2 XSD, but that seems suboptimal for a variety of other reasons regarding the fact that then the targetNamespace
doesn't match. I would think this tool should at least support the latest namespace, if not default to it. Am I missing something?