[Geoserver-devel] SLD validation errors

I downlad the full SLD file named shadow.sld from http://docs.geoserver.org/stable/en/user/styling/sld-extensions/geometry-transformations.html?highlight=offset
Then, I try to upload it to Geoserver. However, when I validate this file, I get error

org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘ogc:Function’. One of '{"http://www.opengis.net/ogc":PropertyName}’ is expected.

How to modify the SLD file?

Thanks

2010/10/25 lv <lv.123@anonymised.com>:

I downlad the full SLD file named shadow.sld from
http://docs.geoserver.org/stable/en/user/styling/sld-extensions/geometry-transformations.html?highlight=offset
Then, I try to upload it to Geoserver. However, when I validate this file, I
get error

org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was
found starting with element 'ogc:Function'. One of
'{"http://www.opengis.net/ogc&quot;:PropertyName\}' is expected.

How to modify the SLD file?

Don't modify the file, you just need to ignore the error message, what
you are using is an extension to the standard SLD,
that's why it does not validate against the schemas.

Btw, you're asking questions on the wrong mailing list, this one is to
discuss the GeoServer own code and manage the
project, people using GeoServer should ask questions on the users
mailng list instead

Cheers
Andrea

-----------------------------------------------------
Ing. Andrea Aime
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584962313
fax: +39 0584962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-----------------------------------------------------