Re: [mapserver-users] XML parsing error with extended Inspire WMS 1.1.1 capabilities
FYI, Pierre Mauduit worked on this: https://github.com/mapserver/mapserver/pull/4861 Y. 2014-02-06 Yves Jacolin yves.jaco...@camptocamp.com: Hello, Thanks, we will try to do a pull request on this soon. Y. 2014-01-31 Eichner, Andreas - SID-NLKM andreas.eich...@sid.sachsen.de: I get this error: Namespace prefix xsi for type on MandatoryKeyword is not defined You're right. The problem using DTD is that namespace declarations are done using FIXED attributes. Therefore the DTD part !ATTLIST inspire_common:MandatoryKeyword xmlns:inspire_common CDATA #FIXED http://inspire.ec.europa.eu/schemas/common/1.0; Should be: !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; Because for element inspire_common:Keyword the xsi:type attribute is declared it should probably also be done for the inspire_common:MandatoryKeyword. So I would consider this being an incomplete document type definition. Fixing this should be simple. HTH -- 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.jaco...@camptocamp.com http://www.camptocamp.com -- 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.jaco...@camptocamp.com http://www.camptocamp.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] XML parsing error with extended Inspire WMS 1.1.1 capabilities
Hello, Thanks, we will try to do a pull request on this soon. Y. 2014-01-31 Eichner, Andreas - SID-NLKM andreas.eich...@sid.sachsen.de: I get this error: Namespace prefix xsi for type on MandatoryKeyword is not defined You're right. The problem using DTD is that namespace declarations are done using FIXED attributes. Therefore the DTD part !ATTLIST inspire_common:MandatoryKeyword xmlns:inspire_common CDATA #FIXED http://inspire.ec.europa.eu/schemas/common/1.0; Should be: !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; Because for element inspire_common:Keyword the xsi:type attribute is declared it should probably also be done for the inspire_common:MandatoryKeyword. So I would consider this being an incomplete document type definition. Fixing this should be simple. HTH -- 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.jaco...@camptocamp.com http://www.camptocamp.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] XML parsing error with extended Inspire WMS 1.1.1 capabilities
I get this error: Namespace prefix xsi for type on MandatoryKeyword is not defined You're right. The problem using DTD is that namespace declarations are done using FIXED attributes. Therefore the DTD part !ATTLIST inspire_common:MandatoryKeyword xmlns:inspire_common CDATA #FIXED http://inspire.ec.europa.eu/schemas/common/1.0; Should be: !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; Because for element inspire_common:Keyword the xsi:type attribute is declared it should probably also be done for the inspire_common:MandatoryKeyword. So I would consider this being an incomplete document type definition. Fixing this should be simple. HTH ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] XML parsing error with extended Inspire WMS 1.1.1 capabilities
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 step...@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@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.rahko...@mmmtike.fi mailto:jukka.rahko...@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 sctrservice=WMSversion=1.1.1request=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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@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.jaco...@camptocamp.com http://www.camptocamp.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] XML parsing error with extended Inspire WMS 1.1.1 capabilities
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.rahko...@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=wmsctrservice=WMSversion=1.1.1request=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@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.jaco...@camptocamp.com http://www.camptocamp.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
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.rahko...@mmmtike.fi mailto:jukka.rahko...@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=wmsctrservice=WMSversion=1.1.1request=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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] XML parsing error with extended Inspire WMS 1.1.1 capabilities
Hi, So where is the bug? In OpenJUMP, SAX, Mapserver, the configuration in Toscane, or in Inspire? -Jukka Rahkonen- Stephan Meißl wrote Lähetetty: 29. tammikuuta 2014 15:48 Vastaanottaja: mapserver-users@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.rahko...@mmmtike.fi mailto:jukka.rahko...@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 sctrservice=WMSversion=1.1.1request=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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] XML parsing error with extended Inspire WMS 1.1.1 capabilities
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@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.rahko...@mmmtike.fi mailto:jukka.rahko...@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 sctrservice=WMSversion=1.1.1request=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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] XML parsing error with extended Inspire WMS 1.1.1 capabilities
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=wmsctrservice=WMSversion=1.1.1request=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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users