GML 2.1.2 schemas don't validate in Xerces
------------------------------------------
Key: GEOS-820
URL: http://jira.codehaus.org/browse/GEOS-820
Project: GeoServer
Issue Type: Bug
Components: Configuration
Affects Versions: 1.4.0-RC4, 1.3.4, 1.4.0-RC5, 1.4.0, 1.5.0-beta1
Reporter: Saul Farber
Assigned To: dblasby
Priority: Minor
Fix For: 1.4.0-RC5, 1.5.0-beta1
Attachments: geometry.xsd.patch
The gml 2.1.2 schemas (as found here http://schemas.opengis.net/gml/2.1.2/) are not valid. They are *almost* valid, and of the many different validation engines out there (MSXML, the w3c validator, xerces-j, etc.) only a small number of them catch the error. It's an obscure part of the XML schema spec, but I asked once a long long time ago on the w3c-schema-dev list and they did conclude that the gml 2.1.2 spec is indeed invalid, and that xerces-j does actually catch the error.
To solve this, I tweaked the geometry.xsd file just a tiny bit to make it valid. I don't think it actually changes the content-model at all, it just makes the schema valid.
I think fixing the schema is a good thing, and will make many people attempting to validate WFS responses with strict validators (for example, xerces-j).
Patch to fix geometry.xsd is attached.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira