| lvandenbrink |
| Newbie |
|
| Netherlands |
|
|
| None Specified |
|
| Thursday, January 12, 2012 |
| Friday, January 13, 2012 6:57:11 AM |
2 [0.01% of all post / 0.00 posts per day] |
|
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.
|
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?
|
|