-
-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing WMS1.1.1 getcapabilities XML parsing error #4861
Conversation
A xml prefix (xsi) is missing in the WMS1.1.1 getcapabilities request with INSPIRE activated, causing mapserver to generate XML which cannot pass the libxml2 validation. Tested manually with vanilla code: % xmllint insp_vanilla.xml 1> /dev/null insp_vanilla.xml:129: namespace error : Namespace prefix xsi for type on MandatoryKeyword is not defined on:MandatoryKeyword xsi:type='inspire_common:classificationOfSpatialDataService' ^ Same generated xml with patched code does not print out the previous validation error. This error has been reported on the mailing list, see: http://lists.osgeo.org/pipermail/mapserver-users/2014-January/075965.html for more details.
cc/ @aeichner |
Should <!ATTLIST inspire_common:MandatoryKeyword
xmlns:inspire_common CDATA #FIXED "http://inspire.ec.europa.eu/schemas/common/1.0"
xmlns:xsi CDATA #FIXED "http://www.w3.org/2001/XMLSchemainstance"
xsi:type (inspire_common:classificationOfSpatialDataService) #IMPLIED
> Other valid values (if any) should be listed also. |
I'm looking into this right now. |
@Schpidi I'm using the one from Ubuntu 13.04:
Anyway, I was able to reproduce the xml validation error into a vagrant debian 7 with libxml 2.8.0 (from the distro) |
@pmauduit ok, I'm now also in a vagrant debian 7 and still get no error :( can you try to run xmllint against |
Why does MapServer actually output |
@Schpidi I don't have any objection as long as it can fix the validation issue |
My guess is that there is no DTD for the INSPIRE parts, only XSD. To be fair, INSPIRE is basing everything on WMS 1.3.0, which is only specified with XSD and not DTD - a WMS 1.1.0 can in any case - so far as I am aware - never be a valid INSPIRE View Service. |
@ejn I agree that WMS 1.3.0 is more often used but according to the INSPIRE specification WMS 1.1.1 is perfectly valid as well and there is the DTD available in the specification but not in the schemas repository. |
A xml prefix (xsi) is missing in the WMS1.1.1 getcapabilities request with INSPIRE activated, causing mapserver to generate XML which cannot pass the libxml2 validation.
Tested manually with the code compiled from master:
Same generated xml with patched code does not print out the previous validation
error.
This error has been reported on the mailing list, see:
http://lists.osgeo.org/pipermail/mapserver-users/2014-January/075965.html
for more details.