[wfs-dev] GML 2.1.2 and XMLSpy

Simon.Cox@csiro.au Simon.Cox at csiro.au
Wed Oct 25 04:49:40 EDT 2006


There are various schema validation issues with all versions of GML
prior to 3.1.1. 
This was consistent with industry norms for schemas of this level of
complexity, 
since XML processing technology was immature at the time of development.

Only in the last couple of years have they all started to agree - in the
case of Xerces C++ only in the past couple of months! 

GML3 was adopted by OGC in January 2003 and there are no plans to bugfix
GML2. 

Simon Cox

-----Original Message-----
From: wfs-dev-bounces+simon.cox=csiro.au at opengeospatial.org
[mailto:wfs-dev-bounces+simon.cox=csiro.au at opengeospatial.org] On Behalf
Of Bart van den Eijnden (OSGIS)
Sent: Saturday, 21 October 2006 3:30 AM
To: wfs-dev at opengeospatial.org
Subject: [wfs-dev] GML 2.1.2 and XMLSpy

Hi list,

when trying to validate WMC 1.0 documents with Altova XMLSpy I always 
run into the following error in geometry.xsd from GML 2.1.2:

File 
D:\svn\mapbuilder\mapbuilder\mapbuilder\demo\data\context\atlasWorld.xml

could not be validated because of an error in XML Schema/DTD (see below)
    File http://schemas.opengis.net/gml/2.1.2/geometry.xsd is not valid.
        Type 'gml:MultiPolygonType' is not a valid restriction of type 
'gml:GeometryCollectionType'.
            Error location: schema / complexType / complexContent / 
restriction / @base
            Details
                rcase-NameAndTypeOK.1: Element <element 
ref='gml:polygonMember'> did not match name and target namespace of the 
respective base particle's term. (see below)
                    Name mismatch: restriction <element 
ref='gml:polygonMember'>, base particle (minOccurs=1, maxOccurs=1) with 
term gml:geometryMember.
                    Name mismatch: restriction <element 
ref='gml:polygonMember'>, base particle (minOccurs=1, maxOccurs=1) with 
term gml:pointMember.
                range-ok.2.2: The restriction's 'maxOccurs' value 
'unbounded' must be less than or equal to '1'.
                rcase-NameAndTypeOK.2: <element ref='gml:polygonMember'>

occurrence range is not a valid restriction of particle (minOccurs=1, 
maxOccurs=1) with term gml:polygonMember occurrence range.
                rcase-NameAndTypeOK.1: The declarations' {name}s and 
{target namespace}s are not the same: restriction element is <element 
ref='gml:polygonMember'> and base element is particle (minOccurs=1, 
maxOccurs=1) with term gml:lineStringMember.
                rcase-RecurseLax.2: There is no complete 
order-preserving functional mapping from the particles of particle 
(minOccurs=1, maxOccurs=1) with term <choice> to the particles of 
particle (minOccurs=1, maxOccurs=unbounded) with term <choice>.
                rcase-RecurseAsIfGroup: <element 
ref='gml:polygonMember'> is not a valid restriction of model group 
particle particle (minOccurs=1, maxOccurs=unbounded) with term <choice>.
                cos-particle-restrict.2.1: Substitution group of element

<element ref='gml:geometryMember'> was expanded to a choice model group.

(see below)
                    'gml:geometryMember'
                    'gml:pointMember'
                    'gml:polygonMember'
                    'gml:lineStringMember'
                rcase-NameAndTypeOK.1: Element <element 
ref='gml:Polygon'> did not match name and target namespace of the 
respective base particle's term. (see below)
                    Name mismatch: restriction <element 
ref='gml:Polygon'>, base particle (minOccurs=1, maxOccurs=1) with term 
gml:MultiPolygon.
                    Name mismatch: restriction <element 
ref='gml:Polygon'>, base particle (minOccurs=1, maxOccurs=1) with term 
gml:LinearRing.
                    Name mismatch: restriction <element 
ref='gml:Polygon'>, base particle (minOccurs=1, maxOccurs=1) with term 
gml:MultiPoint.
                    Name mismatch: restriction <element 
ref='gml:Polygon'>, base particle (minOccurs=1, maxOccurs=1) with term 
gml:MultiGeometry.
                    Name mismatch: restriction <element 
ref='gml:Polygon'>, base particle (minOccurs=1, maxOccurs=1) with term 
gml:MultiLineString.
                    Name mismatch: restriction <element 
ref='gml:Polygon'>, base particle (minOccurs=1, maxOccurs=1) with term 
gml:LineString.
                    Name mismatch: restriction <element 
ref='gml:Polygon'>, base particle (minOccurs=1, maxOccurs=1) with term 
gml:Point.
                rcase-Recurse.2.2: Mandatory particle (minOccurs=1, 
maxOccurs=unbounded) with term <choice> is missing in the <sequence>.
                derivation-ok-restriction.5.4: The content type 
<sequence> is not a valid restriction of content type <sequence>.

Is there a solution to this?

Thanks in advance.

Best regards,
Bart

-- 
Bart van den Eijnden
OSGIS, Open Source GIS
bartvde at osgis.nl
http://www.osgis.nl

_______________________________________________
wfs-dev mailing list
wfs-dev at opengeospatial.org
https://mail.opengeospatial.org/mailman/listinfo/wfs-dev




More information about the wfs-dev mailing list