open-simulation-platform / osp-validator

Ontology-based systems structure validator
Mozilla Public License 2.0
4 stars 1 forks source link

call of osp-validator requires non-existent namspace definition #84

Open frl000 opened 3 years ago

frl000 commented 3 years ago

The use of osp-validator java -jar osp-cli.jar osp-system-structure -file OspModelDescription.xml requires xmlns="http://opensimulationplatform.com/MSMI/OSPSystemStructure" version="0.1" in the xml attributes of OspSystemStructure tu finish succsessfully. But this file is not existent. Using the correct address "xmlns="https://opensimulationplatform.com/xsd/OspModelDescription" version="1.0.0" ends up in an exeption. This makes it impossible for external XML writers to generate a valid OspSystemStructure.xml or FMU_OspModelDescription.xml resp. Please adjust also the documentation, as it already is done in "https://opensimulationplatform.com/xsd/OspModelDescription-1.0.0-doc/OspModelDescription-1.0.0.html"

frl000 commented 3 years ago

Tested on W10.0.17763, command.exe, java jdk 8.222-x64.

markaren commented 3 years ago

Can confirm that the xlmns is an issue. According to the xsd, the correct xlmns is https://open-simulation-platform.com/OspModelDescription/1.0.0. Many examples in demo-cases uses the wrong xlmns and parsing those will break during XML validation in e.g. JAXB.