Tomas,

do you have a stack trace in your GeoServer log corresponding to this 
exception?

What version of GeoServer are you using?

What happens if you remove the type name from the start so the property 
name becomes "elu:hilucsLandUse/@xlink:href"? I do not think the type 
name should be present in this context.

The app-schema WMS page has an example of an SLD with a filter rule on 
the @xlink:href of a property:
http://docs.geoserver.org/stable/en/user/data/app-schema/wms-support.html

Kind regards,
Ben.


On 02/10/16 06:28, Tomas Kliment wrote:
> Dear users,
>
> Anyone of you had experienced problems with SLD filters created for complex
> features?
>
> Have this complex feature:
> http://klimeto.com/geoserver/ows?service=WFS&version=2.0.0&request=GetFeature&typeName=elu:ExistingLandUseObject&count=1
>
> And this is the SLD code filter fragment:
>
> <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc";>
>             <ogc:PropertyIsEqualTo>
>               <ogc:PropertyName>
> elu:ExistingLandUseObject/elu:hilucsLandUse/@xlink:href</ogc:PropertyName>
>               <ogc:Literal>
> http://inspire.ec.europa.eu/codelist/HILUCSValue/1_PrimaryProduction
> </ogc:Literal>
>             </ogc:PropertyIsEqualTo>
>           </ogc:Filter>
>
> The GeoServer WMS error is:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
> ServiceExceptionReport SYSTEM "
> http://klimeto.com:80/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd";>
> <ServiceExceptionReport version="1.1.1" >
> <ServiceException>
>       The requested Style can not be used with this layer.  The style
> specifies an attribute of
> elu:ExistingLandUseObject/elu:hilucsLandUse/@xlink:href and the layer is:
> elu:ExistingLandUseObject
> </ServiceException>
> </ServiceExceptionReport>
>
> Could anyone give any clue?
> Thank you in advance,
> Tomas
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>

-- 
Ben Caradoc-Davies <[email protected]>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to