[Geoserver-users] Problem filtering PropertyName with special character on it

Hi,

As far as I know, property names with column (:slight_smile: are invalid in XML. Change the name into location_source and try if it works that way. This is a common trouble when making WFS services from OpenStreetMap data with loads of tags like address:street.

You may ask why tags with columns are OK in the OSM data which are also XML. Answer is that in OSM data tags are not property names, they are values.

-Jukka Rahkonen-

···

José Alejandro Lugo García wrote:

Hi!

I have a problem about passing values on PropertyName which contains some special character on it. For example, currently I want to filter something like this:

ogc:PropertyIsEqualTo
ogc:PropertyName’location:source’</ogc:PropertyName>
ogc:Literalsomething</ogc:Literal>
</ogc:PropertyIsEqualTo>

…but I received this exception from GeoServer log: The requested Style can not be used with this layer. The style specifies an attribute of ‘location:source’. I tried with removing single quotes, adding double quotes around PropertyName values and nothing so far.

I really appreciate the help you can give me.

Alex.