IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: lvandenbrink
About
User Name: lvandenbrink
Forum Rank: Newbie
Real Name:
Location Netherlands
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Thursday, January 12, 2012
Last Visit: Friday, January 13, 2012 6:57:11 AM
Number of Posts: 2
[0.01% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: AltovaXML problem with (in)valid complextype restriction
Posted: Friday, January 13, 2012 6:57:11 AM
So what is invalid about this schema fragment?

I searched the forum, but most of the GML related posts are about GML 2, I'm using GML 3.1.1. Also, the error is not reported in the GML schema but in the CityGML schema.

I did find one very similar post to mine: https://www.altova.com/forum/default.aspx?g=posts&t=7590

But there the answer is that this is indeed a bug.
Topic: AltovaXML problem with (in)valid complextype restriction
Posted: Thursday, January 12, 2012 1:43:43 PM
Hi all,

AltovaXML reports an error on a complex type restriction in a schema of a type from another schema, while other parsers e.g. CSV do not report an error. I am not sure which parser is right.

The schema where this problem occurs is part of the OGC CityGML standard, which imports schemas from the GML standard.

The reported error is: Type 'OpeningPropertyType' is not a valid restriction of type 'gml:AssociationType'.

The element _Opening is indirectly in the substitutionGroup of gml:_Object.

Schema fragment:
A (CityGML building.xsd)
<xs:complexType name="OpeningPropertyType">
<xs:complexContent>
<xs:restriction base="gml:AssociationType">
<xs:sequence minOccurs="0">
<xs:element ref="_Opening"/>
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>

B: (GML schema gmlbase.xsd - imported from CityGML schema, different namespace)
<complexType name="AssociationType">
<sequence minOccurs="0">
<element ref="gml:_Object"/>
</sequence>
<attributeGroup ref="gml:AssociationAttributeGroup"/>
</complexType>

Many similar definitions occur in the CityGML schemas.

Is this a bug in AltovaXML?

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.