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

Yves Jacolin yves.jacolin at camptocamp.com
Thu Jan 30 07:36:29 PST 2014


Hello all,

I investigated a little bit this issue and it seems to me that the problem
come from the "xsi:type" element that not refers to a definition.

I get this error: Namespace prefix xsi for type on MandatoryKeyword is not
defined

But with firefox: Erreur d'analyse XML : préfixe non lié à un espace de noms
Emplacement :
file:///home/yjacolin/Documents/Projets/ifremer_sextant_support/mapserver_inspire/oceanographie_physique_1.1.1.xml
Numéro de ligne 140, Colonne 5 :    <inspire_common:MandatoryKeyword
xsi:type='inspire_common:classificationOfSpatialDataService'>

And another one with Chrome.

Is this correct or I am completly wrong?

Thanks,

Y.



2014-01-29 Stephan Meißl <stephan at meissl.name>

> On 01/29/2014 02:59 PM, Rahkonen Jukka (Tike) wrote:
> > Hi,
> >
> > So where is the bug? In OpenJUMP, SAX, Mapserver, the configuration in
> Toscane, or in Inspire?
>
> If my suspicion is true then SAX would be needed to be extended to also
> use the element definitions included directly in the capabilities
> document. I guess there would also be a work around in OpenJUMP possible
> as I did in libxml2.
>
> cu
> Stephan
>
> >
> > -Jukka Rahkonen-
> >
> > Stephan Meißl wrote
> >> Lähetetty: 29. tammikuuta 2014 15:48
> >> Vastaanottaja: mapserver-users at lists.osgeo.org
> >> Aihe: Re: [mapserver-users] XML parsing error with extended Inspire WMS
> 1.1.1
> >> capabilities
> >>
> >> 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=
> >> wm
> >>> sctr&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-
> >>
> >> _______________________________________________
> >> mapserver-users mailing list
> >> mapserver-users at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel (France) : +33 4 79 26 57 98
Tel (Suisse) : 021 619 10 43
Mob. : +33 6 18 75 42 21
Fax : 04 79 70 15 81

Mail : yves.jacolin at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140130/55e10084/attachment.htm>


More information about the MapServer-users mailing list