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.

AltovaXML problem with (in)valid complextype restriction Options · View
lvandenbrink
Posted: Thursday, January 12, 2012 1:43:43 PM
Rank: Newbie

Joined: 1/12/2012
Posts: 2
Location: Netherlands
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?
vlad
Posted: Thursday, January 12, 2012 3:15:34 PM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
No, it is not a bug. There are a lot of postings around GML in this forum. Just use forum search.
lvandenbrink
Posted: Friday, January 13, 2012 6:57:11 AM
Rank: Newbie

Joined: 1/12/2012
Posts: 2
Location: Netherlands
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.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

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