Stefan A. Krüger wrote: > A user has reported, that he created SLD files with the AtlasStyler and > wanted > to use them with Geoserver 1.6.3. > > Geoserver is based on geotools, so that should not be a hard test, but: > Geosrver fails when validating the SLD: > >> Invalid content was found starting with element 'sld:PropertyName'. One >> > of ... ogc: Propertyname is expected. > > When replacing > >> <sld:PropertyName>the_geom</sld:PropertyName> löst das Problem. >> > with > >> <ogc:PropertyName>the_geom</ogc:PropertyName> >> > Geoserver validates sucessfully. > That is correct; the "PropertyName" element is part of the Filter 1.0 (or Filter1.1) specification; which adds the concept to the ogc namespace. - http://schemas.opengis.net/filter/1.0.0/filter.xsd
Note the target namespace in that document is "http://www.opengis.net/ogc"; so in documents that assign this name space the prefix "ogc" then "ogc:PropretyName" will be correct. > Does anybody have any idea? Is geotools the problem or is geoserver wrong? > which of the two is the correct namespace? > This actually depends on your document; have a look at what was included in order to figure out what the prefixes actually point to. Jody ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
