[mapserver-users] XML parsing error with extended Inspire WMS 1.1.1 capabilities

Stephan Meißl stephan at meissl.name
Wed Jan 29 05:48:25 PST 2014


Hi,

maybe the problem is that the inspire related elements are defined
directly in the capabilities document and not in the referenced DTD [1]
and thus not found by SAX.

Merging the definitions into one document and using it with libxml2
successfully validates the capabilities provided in autotest.

cu
Stephan

[1] http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd


On 01/29/2014 10:47 AM, Yves Jacolin wrote:
> Hello,
> 
> I have the same issue. It seems that namespace header are not correct
> (just a guess, I could be wrong).
> 
> Changing wms_inspire_capabilities from "embed" to "url" make a correct
> GetCapabilities.
> 
> I can fill an issue and add some simple mapfile if needed.
> 
> Regards,
> 
> Y.
> 
> 
> 2013-11-25 Rahkonen Jukka <jukka.rahkonen at mmmtike.fi
> <mailto:jukka.rahkonen at mmmtike.fi>>
> 
>     Hi,
> 
>     The SAX parser in OpenJUMP reports an error when trying to read the
>     GetCapabilities from Mapserver 6.5-dev based WMS service of Toscana.
>     The URL to use is
>     http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsctr&service=WMS&version=1.1.1&request=GetCapabilities
> 
>     The error from the parser is:
> 
>     IOException: org.xml.sax.SAXParseException: The prefix "xsi" for
>     attribute "xsi:type"
>     associated with an element type "inspire_common:MandatoryKeyword" is
>     not bound.
> 
>     WMS 1.1.0 works OK (probably because GetCapabilities come without
>     Inspire stuff) as well as WMS 1.3.0.
> 
>     -Jukka Rahkonen-



More information about the mapserver-users mailing list