[Geoserver-users] Style Tutorial

Hi,

New to GeoServer; installed it on WInXP SP2 and it seems to running ok. Completed the first tutorial to add datasets without problem.

On the “Style Your Map” tutorial (http://geoserver.org/display/GEOSDOC/1.3+Style+Your+Map) things are not going. When trying to create a new style with any of the sld files provided the following error is shown:

Your .SLD file does not conform to the SLD SchemaMore help is available here


INVALID XML: Premature end of file.

Either recorded with Notepad++ or Notepad the error is the same, so it shouldn't be some character problem. Are these sld files up to date with the latest xls version? 

Any help appreciated,

Luís


Luís de Sousa ha scritto:

Hi,

New to GeoServer; installed it on WInXP SP2 and it seems to running ok. Completed the first tutorial to add datasets without problem.

On the "Style Your Map" tutorial (http://geoserver.org/display/GEOSDOC/1.3+Style+Your+Map) things are not going. When trying to create a new style with any of the sld files provided the following error is shown:

  Your .SLD file does not conform to the SLD Schema

More help is available here <http://geoserver.org/display/GEOS/SLD+Validation&gt;

INVALID XML: Premature end of file.

Either recorded with Notepad++ or Notepad the error is the same, so it shouldn't be some character problem. Are these sld files up to date with the latest xls version?

They are... I just took the first (the line style) copied and pasted
in the GeoServer "new style" page and got no error messages back.

Generally speaking never use Notepad, it ruins the files by adding
a UTF8 marker that only Windows specific apps understand
at the beginning of the file (the infamous BOM, Byte Order Mark).
I'm on XP SP3 and Firefox btw, copied the styles directly
from the wiki page into GeoServer

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.