[wfs-dev] GML 2.1.2 and XMLSpy

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Wed Oct 25 09:15:59 EDT 2006


Hi Jørgen,

could you post your changes to the list, or offer the changed schemas as a
download? Thanks in advance.

I agree with Simon though that we should find a way to make this into a
change request, so that not everybody needs to patch their own set of
schemas.

Best regards,
Bart

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


--------- Oorspronkelijk bericht --------
Van: Münster-Swendsen, Jørgen <jrm at kms.dk>
Naar: wfs-dev at opengeospatial.org <wfs-dev at opengeospatial.org>
Onderwerp: Re: [wfs-dev] GML 2.1.2 and XMLSpy
Datum: 25/10/06 10:08

> I fully agree with Bart van den Eijnden, OSGIS, Open Source GIS.
> 
> I have been forced to make modifications to geometry.xsd (or rather modify
other schemas including geometry.xsd) in order to be able to validate XML
documents.
> 
> Regards
> 
> Jørgen Münster-Swendsen
> Miljøministeriet /  Ministry of the environment
> Kort &amp; Matrikelstyrelsen / National Survey and Cadastre - Denmark
> 
> -----Oprindelig meddelelse-----
> Fra: wfs-dev-bounces+jrm=kms.dk at opengeospatial.org
[mailto:wfs-dev-bounces+jrm=kms.dk at opengeospatial.org] På vegne af Bart van
den Eijnden (OSGIS)
> Sendt: 25. oktober 2006 11:18
> Til: Simon.Cox at csiro.au; bartvde at osgis.nl; wfs-dev at opengeospatial.org
> Emne: Re: [wfs-dev] GML 2.1.2 and XMLSpy
> 
> It's really strange IMHO that there are no plans to bugfix GML 2.
> 
> It is still widely used (WFS 1.0 should be the most out there currently),
> and is also used in specs like Web Map Context.
> 
> How can you work with these standards if the XML cannot be validated ....
?
> One cannot expect everybody (and all the specs linking to GML) to move to
> GML 3 ....
> 
> Best regards,
> Bart
> 
> --
> Bart van den Eijnden
> OSGIS, Open Source GIS
> http://www.osgis.nl
> 
> 
> --------- Oorspronkelijk bericht --------
> Van: Simon.Cox at csiro.au
> Naar: bartvde at osgis.nl &lt;bartvde at osgis.nl&gt;,
wfs-dev at opengeospatial.org
> &lt;wfs-dev at opengeospatial.org&gt;
> Onderwerp: RE: [wfs-dev] GML 2.1.2 and XMLSpy
> Datum: 25/10/06 06:50
> 
> &gt; There are various schema validation issues with all versions of GML
> &gt; prior to 3.1.1. 
> &gt; This was consistent with industry norms for schemas of this level of
> &gt; complexity, 
> &gt; since XML processing technology was immature at the time of
development.
> &gt; 
> &gt; Only in the last couple of years have they all started to agree - in
the
> &gt; case of Xerces C++ only in the past couple of months! 
> &gt; 
> &gt; GML3 was adopted by OGC in January 2003 and there are no plans to
bugfix
> &gt; GML2. 
> &gt; 
> &gt; Simon Cox
> &gt; 
> &gt; -----Original Message-----
> &gt; From: wfs-dev-bounces+simon.cox=csiro.au at opengeospatial.org
> &gt; [mailto:wfs-dev-bounces+simon.cox=csiro.au at opengeospatial.org] On
Behalf
> &gt; Of Bart van den Eijnden (OSGIS)
> &gt; Sent: Saturday, 21 October 2006 3:30 AM
> &gt; To: wfs-dev at opengeospatial.org
> &gt; Subject: [wfs-dev] GML 2.1.2 and XMLSpy
> &gt; 
> &gt; Hi list,
> &gt; 
> &gt; when trying to validate WMC 1.0 documents with Altova XMLSpy I always

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

> &gt; maxOccurs=1) with term gml:polygonMember occurrence range.
> &gt;                 rcase-NameAndTypeOK.1: The declarations' {name}s and 
> &gt; {target namespace}s are not the same: restriction element is
&amp;lt;element 
> &gt; ref='gml:polygonMember'&amp;gt; and base element is particle
(minOccurs=1, 
> &gt; maxOccurs=1) with term gml:lineStringMember.
> &gt;                 rcase-RecurseLax.2: There is no complete 
> &gt; order-preserving functional mapping from the particles of particle 
> &gt; (minOccurs=1, maxOccurs=1) with term &amp;lt;choice&amp;gt; to the
particles of 
> &gt; particle (minOccurs=1, maxOccurs=unbounded) with term
&amp;lt;choice&amp;gt;.
> &gt;                 rcase-RecurseAsIfGroup: &amp;lt;element 
> &gt; ref='gml:polygonMember'&amp;gt; is not a valid restriction of model
group 
> &gt; particle particle (minOccurs=1, maxOccurs=unbounded) with term
> &amp;lt;choice&amp;gt;.
> &gt;                 cos-particle-restrict.2.1: Substitution group of
element
> &gt; 
> &gt; &amp;lt;element ref='gml:geometryMember'&amp;gt; was expanded to a
choice model
> group.
> &gt; 
> &gt; (see below)
> &gt;                     'gml:geometryMember'
> &gt;                     'gml:pointMember'
> &gt;                     'gml:polygonMember'
> &gt;                     'gml:lineStringMember'
> &gt;                 rcase-NameAndTypeOK.1: Element &amp;lt;element 
> &gt; ref='gml:Polygon'&amp;gt; did not match name and target namespace of
the 
> &gt; respective base particle's term. (see below)
> &gt;                     Name mismatch: restriction &amp;lt;element 
> &gt; ref='gml:Polygon'&amp;gt;, base particle (minOccurs=1, maxOccurs=1)
with term 
> &gt; gml:MultiPolygon.
> &gt;                     Name mismatch: restriction &amp;lt;element 
> &gt; ref='gml:Polygon'&amp;gt;, base particle (minOccurs=1, maxOccurs=1)
with term 
> &gt; gml:LinearRing.
> &gt;                     Name mismatch: restriction &amp;lt;element 
> &gt; ref='gml:Polygon'&amp;gt;, base particle (minOccurs=1, maxOccurs=1)
with term 
> &gt; gml:MultiPoint.
> &gt;                     Name mismatch: restriction &amp;lt;element 
> &gt; ref='gml:Polygon'&amp;gt;, base particle (minOccurs=1, maxOccurs=1)
with term 
> &gt; gml:MultiGeometry.
> &gt;                     Name mismatch: restriction &amp;lt;element 
> &gt; ref='gml:Polygon'&amp;gt;, base particle (minOccurs=1, maxOccurs=1)
with term 
> &gt; gml:MultiLineString.
> &gt;                     Name mismatch: restriction &amp;lt;element 
> &gt; ref='gml:Polygon'&amp;gt;, base particle (minOccurs=1, maxOccurs=1)
with term 
> &gt; gml:LineString.
> &gt;                     Name mismatch: restriction &amp;lt;element 
> &gt; ref='gml:Polygon'&amp;gt;, base particle (minOccurs=1, maxOccurs=1)
with term 
> &gt; gml:Point.
> &gt;                 rcase-Recurse.2.2: Mandatory particle (minOccurs=1, 
> &gt; maxOccurs=unbounded) with term &amp;lt;choice&amp;gt; is missing in
the
> &amp;lt;sequence&amp;gt;.
> &gt;                 derivation-ok-restriction.5.4: The content type 
> &gt; &amp;lt;sequence&amp;gt; is not a valid restriction of content type
> &amp;lt;sequence&amp;gt;.
> &gt; 
> &gt; Is there a solution to this?
> &gt; 
> &gt; Thanks in advance.
> &gt; 
> &gt; Best regards,
> &gt; Bart
> &gt; 
> &gt; -- 
> &gt; Bart van den Eijnden
> &gt; OSGIS, Open Source GIS
> &gt; bartvde at osgis.nl
> &gt; http://www.osgis.nl
> &gt; 
> &gt; _______________________________________________
> &gt; wfs-dev mailing list
> &gt; wfs-dev at opengeospatial.org
> &gt; https://mail.opengeospatial.org/mailman/listinfo/wfs-dev
> &gt; 
> &gt; 
> &gt; 
> 
> 
> 
> _______________________________________________
> wfs-dev mailing list
> wfs-dev at opengeospatial.org
> https://mail.opengeospatial.org/mailman/listinfo/wfs-dev
> 
> 
> 
> 
> _______________________________________________
> 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