[Geoserver-users] SLD validation curio

Hi,

I tested with Geoserver 2.6 by opening the line.sld with Styles editor (copy from existing style). It does validate for me.

What Geoserver version you have? Maybe the error with Abstract has corrected later. I may also have a different “line.sld”, it has on line 14

A sample style that draws a line

-Jukka Rahkonen-

···

Jones, Spencer R wrote:

Hi All

I’m in the process of getting our GeoServer up and running here, and I’ve hit what is either a snag or a curio. If I edit one of the existing pre-supplied styles (let’s say ‘line’), and I don’t change a single thing, and then go to Validate, I get the following unexpected error:

  • line 9: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘sld:Abstract’. One of ‘{“http://www.opengis.net/sld”:FeatureTypeStyle}’ is expected.

To reiterate, these are the pre-supplied SLDs and they haven’t been edited at all. Anyone have any idea what might be going on?

Spencer Jones

GIS Tech Admin

South West Water


The information and documents sent in this email from South West Water Ltd are sent in confidence and are intended only for the use of the individual or entity named above. Please note that the contents may contain privileged, personal and/or confidential information and are not to be disclosed to any person other than the addressee. If you are not the intended recipient you are notified that any use, dissemination, distribution or copying of the information and documents contained in this email is strictly prohibited. If you have received this email in error, please return it and any copies immediately, without reading any attachments, and confirm that immediately upon returning the email, you will delete all copies on your system and network.

South West Water Limited - Registered in England No: 2366665

Registered Office:

Peninsula House

Rydon Lane

Exeter

Devon EX2 7HR


Hi,

Same here! Tested it on geoserver 2.4.0, 2.5.2 and 2.6.0, no validation errors.

On line 9 of the sld of the line style I have the start-tag . Element Abstract is on line 14 and element FeatureTypeStyle is on line 17. So I would guess you are using a (very) old sld. The StyledLayerDescriptor start-tag already takes 7 lines in the recent slds of style “line”.

Kind regards,

Roel De Nijs

Senior Java Developer

Van: Rahkonen Jukka (Tike) [mailto:jukka.rahkonen@anonymised.com]
Verzonden: woensdag 8 oktober 2014 12:17
Aan: ‘Jones, Spencer R’; ‘geoserver-users@lists.sourceforge.net’
Onderwerp: Re: [Geoserver-users] SLD validation curio

Hi,

I tested with Geoserver 2.6 by opening the line.sld with Styles editor (copy from existing style). It does validate for me.

What Geoserver version you have? Maybe the error with Abstract has corrected later. I may also have a different “line.sld”, it has on line 14

A sample style that draws a line

-Jukka Rahkonen-

Jones, Spencer R wrote:

Hi All

I’m in the process of getting our GeoServer up and running here, and I’ve hit what is either a snag or a curio. If I edit one of the existing pre-supplied styles (let’s say ‘line’), and I don’t change a single thing, and then go to Validate, I get the following unexpected error:

  • line 9: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘sld:Abstract’. One of ‘{“http://www.opengis.net/sld”:FeatureTypeStyle}’ is expected.

To reiterate, these are the pre-supplied SLDs and they haven’t been edited at all. Anyone have any idea what might be going on?

Spencer Jones

GIS Tech Admin

South West Water


The information and documents sent in this email from South West Water Ltd are sent in confidence and are intended only for the use of the individual or entity named above. Please note that the contents may contain privileged, personal and/or confidential information and are not to be disclosed to any person other than the addressee. If you are not the intended recipient you are notified that any use, dissemination, distribution or copying of the information and documents contained in this email is strictly prohibited. If you have received this email in error, please return it and any copies immediately, without reading any attachments, and confirm that immediately upon returning the email, you will delete all copies on your system and network.

South West Water Limited - Registered in England No: 2366665

Registered Office:

Peninsula House

Rydon Lane

Exeter

Devon EX2 7HR



Volg Aquafin op Facebook | Twitter | YouTube | LinkedIN

Disclaimer: zie www.aquafin.be P Denk aan het milieu. Druk deze mail niet onnodig af.