[mapserver-users] [TinyOWS] Inserting feature and XML schema validation

Тимур Галиаскарович Суфиев t.sufiev at acti.ru
Mon Nov 19 05:46:50 PST 2012


Olivier,

I got the point: this is exactly the same fragment I've committed on Nov 01, string src/wfs_get_feature.c:825:
        buffer_copy(id_name, ll->value);
Previously (before commits from #19) ll->value contained layer's name, and now it contains <ns-uri>:<layer-name>. Should return from <ns-uri>:<layer-name> to <layer-name> somehow...

Best regards,
Timur Sufiev
  _____  

From: Olivier Courtin [mailto:olivier.courtin at gmail.com]
To: mapserver-users at lists.osgeo.org
Sent: Mon, 19 Nov 2012 15:48:20 +0300
Subject: Re: [mapserver-users] [TinyOWS] Inserting feature and XML schema validation

Hi Timur,






XML validation is such issue-rich subject, so I have another question considering it :).
    


You noticed also this one ^^

 
Recent TinyOWS commits (from 1st Nov till 13th, I don't know which one exactly is responsible) introduced some changes to feature ids naming, now I have the following error on features update/delete from OpenLayers:
    


#19 introduced that namespaces are also to be checked from Typename parameter.
(prior (wrong) behaviour was just to ignore namespace prefix)

  

   
[Mon Nov 19 16:03:30 2012] [ERROR] Element '{http://www.opengis.net/ogc}FeatureId', attribute 'fid': 'http://www.tinyows.org/:cities.719' is not a valid value of the atomic type 'xs:ID'.
    
Is '<ns-uri>:<layer-name>.<entity-integer-id>' a new feature-id by design or something went wrong?



Should be only <layer.name>.<entity-integer-id>  (as ever)    


Could you confirm that you are using current trunk version or 1.1.0 ?

-- 
  Olivier    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121119/34978893/attachment.htm>


More information about the MapServer-users mailing list