| We use the GeoServer Rest API to publish styles. A style can have a label with two properties concatenated together and separated by a space. In the SLD we are submitting: <sld:Label> <ogc:Function name=”Concatenate”> <ogc:PropertyName>property_1</ogc:PropertyName> <ogc:Literal><![CDATA[ ]]></ogc:Literal> <ogc:PropertyName>property_2</ogc:PropertyName> </ogc:Function> </sld:Label> However, the end label result is the two properties are concatenated together without the space. It looks like the Rest API is stripping out <![CDATA[ ]]>, so the SLD that is actually on the server is defined as: <sld:Label> <ogc:Function name=”Concatenate”> <ogc:PropertyName>property_1</ogc:PropertyName> <ogc:Literal> </ogc:Literal> <ogc:PropertyName>property_2</ogc:PropertyName> </ogc:Function> </sld:Label> Thus, when the layer is rendered the empty <ogc:Literal> tag results in no space being concatenated. |