[wfs-dev] GML 2.1.2 and XMLSpy

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Fri Oct 20 15:29:56 EDT 2006


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



More information about the wfs-dev mailing list