Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

mvdXML v1.2 schema problems no.2? #9

Open
pjanck opened this issue Sep 2, 2021 · 6 comments · May be fixed by #26
Open

mvdXML v1.2 schema problems no.2? #9

pjanck opened this issue Sep 2, 2021 · 6 comments · May be fixed by #26

Comments

@pjanck
Copy link
Contributor

pjanck commented Sep 2, 2021

I've taken the current Draft9 of the schema (https://github.com/buildingSMART/mvdXML/blob/master/mvdXML1.2/xsd/mvdXML_V1-2_Draft9.xsd), with the fixes in #8, and ran it through VisualStudio xsd utility. I get this error (sorry for German language):

Schema validation warning: Verweis auf eine nicht deklarierte Modellgruppe 'https://standards.buildingsmart.org/IFC/RELEASE/IFC4/Add2TC1:IfcUnit'. Line 161, position 11.

It seems that this part makes problems:

<!-- new element in mvdXML 1.2 -->
<xs:element name="DefaultSettings" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
Global settings about precision and units that apply to the whole mvdXML file unless overriden by rule specific settings.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Units" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
Global unit settings based on the IFC4 specification for comparison of measurement values. If not defined, comparison of measurement values are based on SI units.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:group ref="ifc:IfcUnit" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="precision" type="mvd:precisionValue" use="optional"/>
</xs:complexType>
</xs:element>

@pjanck
Copy link
Contributor Author

pjanck commented Sep 2, 2021

A wild guess would be, that the ifc namespace cannot be resolved; however, I'm unsure as to how to fix this.

@MatthiasWeise
Copy link
Contributor

We are using the same namespace as in ifcXML.xsd of IFC4 Add2 TC1 (https://standards.buildingsmart.org/IFC/RELEASE/IFC4/ADD2_TC1/XML/IFC4.xsd), but did not provide a schema location for download. Can you try to add the following statement to the <xs:schema ..> tag?

ifc:schemaLocation="https://standards.buildingsmart.org/IFC/RELEASE/IFC4/Add2TC1 https://standards.buildingsmart.org/IFC/RELEASE/IFC4/ADD2_TC1/XML/IFC4.xsd"

Full statement then:
<xs:schema xmlns:mvd="https://standards.buildingsmart.org/MVD/RELEASE/mvdXML/v1-2/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="https://standards.buildingsmart.org/MVD/RELEASE/mvdXML/v1-2/" elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:ifc="https://standards.buildingsmart.org/IFC/RELEASE/IFC4/Add2TC1" version="1.2">

@pjanck
Copy link
Contributor Author

pjanck commented Sep 3, 2021

I don't see the added tag in the full statement - care to double-check?

@MatthiasWeise
Copy link
Contributor

Sorry, it seems I copied the old one

<xs:schema xmlns:mvd="https://standards.buildingsmart.org/MVD/RELEASE/mvdXML/v1-2/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="https://standards.buildingsmart.org/MVD/RELEASE/mvdXML/v1-2/" elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:ifc="https://standards.buildingsmart.org/IFC/RELEASE/IFC4/Add2TC1" ifc:schemaLocation="https://standards.buildingsmart.org/IFC/RELEASE/IFC4/Add2TC1 https://standards.buildingsmart.org/IFC/RELEASE/IFC4/ADD2_TC1/XML/IFC4.xsd" version="1.2">

@pjanck
Copy link
Contributor Author

pjanck commented Sep 3, 2021

Nope, still receiving the same error. Do you wish to make a live exchange? I can call you.

@SergejMuhic
Copy link

Did a little digging. Let us try this tomorrow:

<xs:import namespace= before defining xs:schema.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants