[wfs-dev] GML 2.1.2 and XMLSpy
Peter.Rushforth@statcan.ca
Peter.Rushforth at statcan.ca
Thu Oct 26 11:05:43 EDT 2006
Bart,
The w3c schema validation tool xsv, which some people consider *the*
authority on whether a schema is a valid or not, reports no errors
with the gml 2.1.2 schemas. I have found XML Spy to be flaky when
dealing with complex schemas at times, also depending on the version
of xml spy.
The on-line xsv tool can be found at: http://www.w3.org/2001/03/webdata/xsv
Perhaps this will help clarify the situation?
Cheers,
Peter Rushforth
Geography Division
Statistics Canada
Ottawa Ontario
K1A 0T6
> -----Original Message-----
> From:
> wfs-dev-bounces+peter.rushforth=statcan.ca at opengeospatial.org
> [mailto:wfs-dev-bounces+peter.rushforth=statcan.ca at opengeospat
> ial.org] On Behalf Of Bart van den Eijnden (OSGIS)
> Sent: October 20, 2006 3:30 PM
> 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\atla
> sWorld.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