<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
 <meta http-equiv='Content-Type' content='text/html;charset=iso-8859-1'>
 <style>BODY{font:10pt Tahoma, Verdana, sans-serif;}</style>
</head>
<body>
Hi Bart,<br><br>I opened a ticket:<br>http://trac.osgeo.org/mapserver/ticket/3447<br><br>Roy<br><br><blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid rgb(0, 0, 255); margin-right: 0px;"><hr><b>From:</b> bartvde@osgis.nl<br><b>To:</b> Roy Braam [mailto:roybraam@b3partners.nl]<br><b>Cc:</b> Rahkonen Jukka [mailto:jukka.rahkonen@mmmtike.fi], mapserver-users@lists.osgeo.org<br><b>Sent:</b> Tue, 04 May 2010 10:52:20 +0200<br><b>Subject:</b> Re: [mapserver-users] invalid schema location?<br><br>Hi Roy,<br>
<br>
I can confirm the issue with Xerces. It should be as simple as replacing<br>
the space with %20 or not?<br>
<br>
Fatal Error at (file stdin, line 8, char 361): The schemaLocation<br>
attribute does not contain pairs of values.<br>
<br>
Can you open up a ticket in the Mapserver Trac?<br>
<br>
Best regards,<br>
Bart<br>
<br>
&gt; Thanks,<br>
&gt;<br>
&gt; I tested it, but with a post message and a GetFeature as xml body<br>
&gt; mapserver keeps responding with a invalid schema (with spaces).<br>
&gt; Even without a outputformat in the getFeature.<br>
&gt; Is this bug going to be solved in a next version of mapserver?<br>
&gt;<br>
&gt; Roy<br>
&gt;<br>
&gt;<br>
&gt;   _____<br>
&gt;<br>
&gt; From: Rahkonen Jukka [mailto:<a href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>]<br>
&gt; To: Roy Braam [mailto:<a href="mailto:roybraam@b3partners.nl">roybraam@b3partners.nl</a>],<br>
&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; Sent: Mon, 26 Apr 2010 15:27:48 +0200<br>
&gt; Subject: Re: [mapserver-users] invalid schema location?<br>
&gt;<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; I inspired to compare how Mapserver and Geoserver are   handling this<br>
&gt; thing.  At least I can say that they are doing thing in a bit   different<br>
&gt; way, and Geoserver is creating alwayd the DescribeFeatureType   URL in the<br>
&gt; GetFeature output without OUTPUTFORMAT.<br>
&gt;<br>
&gt;<br>
&gt; GEOSERVER<br>
&gt; ==========<br>
&gt;<br>
&gt; - GetFeature with WFS version 1.1.0 and   outputformat=gml2<br>
&gt;  -&gt; RESULT schema location contains<br>
&gt; "...geoserver/wfs?service=WFS&amp;version=1.0.0&amp;request=DescribeFeatureType&amp;typeName=..."<br>
&gt;<br>
&gt; So the GetFeature was done with version 1.1.0 but the   URL to schema<br>
&gt; location is containing "version=1.0.0", and because WFS 1.0.0   default is<br>
&gt; gml2 this is giving a correct schema.<br>
&gt;<br>
&gt;<br>
&gt; - GetFeature with WFS version 1.1.0 and   outputformat=text/xml;<br>
&gt; subtype=gml/3.1.1<br>
&gt;  -&gt; RESULT schema location contains<br>
&gt; "...geoserver/wfs?service=WFS&amp;version=1.1.0&amp;request=DescribeFeatureType&amp;typeName=..."<br>
&gt;<br>
&gt; Now the schema location URL is using "version=1.1.0"   which defaults to<br>
&gt; gml3.1.1 and schema is correct.<br>
&gt;<br>
&gt;<br>
&gt; MAPSERVER<br>
&gt; ==========<br>
&gt;<br>
&gt; On the other hand, Mapserver version 5.2.1 behaves this   way<br>
&gt;<br>
&gt; GetFeature request wioth WFS version 1.1.0 and   outputformat=gml2<br>
&gt;     (here is part of my test request   literally:<br>
&gt; &amp;service=wfs&amp;version=1.1.0&amp;request=getfeature&amp;typeName=test&amp;maxfeatures=2&amp;OUTPUTFORMAT=gml2)<br>
&gt;<br>
&gt; -&gt; RESULT schema location contains<br>
&gt; /cgi-bin/wfstest?SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=test&amp;OUTPUTFORMAT=XMLSCHEMA"&gt;<br>
&gt;<br>
&gt; Running this DescribeFeatureType query returns schema   with reference to<br>
&gt; "<a href="http://schemas.opengis.net/gml/2.1.2/feature.xsd%22" target="_blank">http://schemas.opengis.net/gml/2.1.2/feature.xsd"</a><br>
&gt; Features in the GetFeature are in gml2   format.<br>
&gt; I suppose this is working OK.<br>
&gt;<br>
&gt;<br>
&gt; Request WFS version 1.1.0 and outputformat=text/xml;   subtype=gml/3.1.1<br>
&gt;        (&amp;service=wfs&amp;version=1.1.0&amp;request=getfeature&amp;typeName=test&amp;maxfeatures=2&amp;OUTPUTFORMAT=text/xml;<br>
&gt;   subtype=gml/3.1.1)<br>
&gt;<br>
&gt; This does not work at all for me.  Mapserver is   returning features in<br>
&gt; gml2 format with this parameter, even if I am specially   asking for<br>
&gt; gml3.1.1<br>
&gt;<br>
&gt;<br>
&gt; Request WFS version 1.1.0 and without using   outputformat at all (WFS<br>
&gt; 1.1.0 default is text/xml;   subtype=gml/3.1.1)<br>
&gt;<br>
&gt; - &gt; schema location contains<br>
&gt; cgi-bin/wfstest?SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=test&amp;OUTPUTFORMAT=text/xml;<br>
&gt;   subtype=gml/3.1.1<br>
&gt;<br>
&gt; Running this query returns schema with reference to<br>
&gt; "<a href="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd%22" target="_blank">http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"</a><br>
&gt; Features in the GetFeature are in gml 3.1.1.   format.<br>
&gt; I suppose this is working OK.  However, Mapserver   does not need<br>
&gt; OUTPUTFORMAT parameter here but the result is the same even if I   leave<br>
&gt; it out.<br>
&gt;<br>
&gt; -Jukka Rahkonen-<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     _____<br>
&gt;<br>
&gt;<br>
&gt; Lähettäjä:   <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><br>
&gt; [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] Puolesta Roy   Braam<br>
&gt; Lähetetty: 26. huhtikuuta 2010 14:26<br>
&gt; Vastaanottaja:   <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; Aihe: [mapserver-users] invalid schema   location?<br>
&gt;<br>
&gt;<br>
&gt; Hello List,<br>
&gt;<br>
&gt; When i do a WFS getFeature request mapserver     returns a xml that starts<br>
&gt; with:<br>
&gt;<br>
&gt; &lt;?xml version='1.0'     encoding="ISO-8859-1" ?&gt;<br>
&gt; &lt;wfs:FeatureCollection<br>
&gt;        xmlns:ms="<a href="http://mapserver.gis.umn.edu/mapserver%22" target="_blank">http://mapserver.gis.umn.edu/mapserver"</a><br>
&gt;        xmlns:gml="<a href="http://www.opengis.net/gml%22" target="_blank">http://www.opengis.net/gml"</a><br>
&gt;        xmlns:wfs="<a href="http://www.opengis.net/wfs%22" target="_blank">http://www.opengis.net/wfs"</a><br>
&gt;        xmlns:ogc="<a href="http://www.opengis.net/ogc%22" target="_blank">http://www.opengis.net/ogc"</a><br>
&gt;        xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance%22" target="_blank">http://www.w3.org/2001/XMLSchema-instance"</a><br>
&gt;        xsi:schemaLocation="<a href="http://mapserver.gis.umn.edu/mapserver" target="_blank">http://mapserver.gis.umn.edu/mapserver</a><br>
&gt; <a href="http://server.nl/geoservices/aankoopgebieden?SERVICE=WFS&amp;amp;VERSION=1.1.0&amp;amp;REQUEST=DescribeFeatureType&amp;amp;TYPENAME=LL&amp;amp;OUTPUTFORMAT=text/xml;" target="_blank">http://server.nl/geoservices/aankoopgebieden?SERVICE=WFS&amp;amp;VERSION=1.1.0&amp;amp;REQUEST=DescribeFeatureType&amp;amp;TYPENAME=LL&amp;amp;OUTPUTFORMAT=text/xml;</a><br>
&gt;     subtype=gml/3.1.1  <a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a><br>
&gt; <a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd%22" target="_blank">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"</a><br>
&gt; numberOfFeatures="16"&gt;<br>
&gt;           &lt;gml:boundedBy&gt;<br>
&gt;<br>
&gt; If i read this     site:<br>
&gt; <a href="http://www.w3.org/TR/xmlschema-0/#schemaLocation" target="_blank">http://www.w3.org/TR/xmlschema-0/#schemaLocation</a><br>
&gt;<br>
&gt; the schema     locations needs to be "pairs of URI references, separated<br>
&gt; by white     space".<br>
&gt; Because the OUTPUTFORMAT="text/xml; subtype=gml/3.1.1" a space is     in<br>
&gt; the url of the first pair in my example.<br>
&gt; 1) spaces are not valid in     URLS??<br>
&gt; 2) you don't have pairs anymore. You have a odd number of values if<br>
&gt; you separate by space...<br>
&gt;<br>
&gt; So, is mapserver generating a invalid XML?? Or     i'm doing something<br>
&gt; wrong....<br>
&gt;<br>
&gt; Version of mapserver =   5.6.3<br>
&gt;<br>
&gt; Roy    _______________________________________________<br>
&gt; mapserver-users mailing list<br>
&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt;<br>
<br>
<br>
</blockquote><style>
</style>
</body></html>