I would not expect that to work, since PropertyName takes a literal string
(well an xpath expression), rather than an general expression.

Consider using an if expression to choose between different propertyNames?

--
Jody Garnett

On 7 September 2015 at 22:40, Murad Jamal <[email protected]> wrote:

> Hello
>
> Can we use the ALD variable substitution to dynamically tell which
> propertyName to use for label
>
> for example
>
>       <sld:Label>
>         <ogc:PropertyName>
>          <ogc:Function name="env">
>           <ogc:Literal>labelField</ogc:Literal>
>           <ogc:Literal>room_number</ogc:Literal>
>           </ogc:Function>
>         </ogc:PropertyName>
>       </sld:Label>
>
>
> i have tried this and not working
>
> Please help
>
> Regards
>
> Murad
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to