You need to use the prefix se: on your new elements in the same way the rest of the document does
Ian On 20/08/15 09:24, Iyappan Lakshmanan wrote: > I have renerated SLD file from QGIS, using opengeosuite, I want to add > label for my layer, for that I addded oragne color highlighed lines by > refering the tutorial, I modified the field name 'tot_popu'. I saved the > file, i uploaded as newstyle in geoserver, but not working. It shows red > color highlighd error. please help me. i am not a programmer. > > > </se:PolygonSymbolizer> > </se:Rule> > <se:Rule> > <se:TextSymbolizer> > <Label> > <ogc:PropertyName>tot_popu</ogc:PropertyName> > </Label> > <Font> > <CssParameter name="font-family">Arial</CssParameter> > <CssParameter name="font-size">11</CssParameter> > <CssParameter name="font-style">normal</CssParameter> > <CssParameter name="font-weight">bold</CssParameter> > </Font> > <LabelPlacement> > <PointPlacement> > <AnchorPoint> > <AnchorPointX>0.5</AnchorPointX> > <AnchorPointY>0.5</AnchorPointY> > </AnchorPoint> > </PointPlacement> > </LabelPlacement> > <Fill> > <CssParameter name="fill">#000000</CssParameter> > </Fill> > <VendorOption name="autoWrap">60</VendorOption> > <VendorOption name="maxDisplacement">150</VendorOption> > </se:TextSymbolizer> > </se:Rule> > </se:FeatureTypeStyle> > </UserStyle> > </NamedLayer> > </StyledLayerDescriptor> > > > * line 290: cvc-complex-type.2.4.a: Invalid content was found starting > with element 'Label'. One of '{"http://www.opengis.net/se":Name, > "http://www.opengis.net/se":Description, > "http://www.opengis.net/se":BaseSymbolizer, > "http://www.opengis.net/se":Geometry, > "http://www.opengis.net/se":Label, "http://www.opengis.net/se":Font, > "http://www.opengis.net/se":LabelPlacement, > "http://www.opengis.net/se":Halo, "http://www.opengis.net/se":Fill, > "http://www.opengis.net/se":Priority, > "http://www.opengis.net/se":VendorOption}' is expected. > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > Geoserver-users mailing list > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users > ------------------------------------------------------------------------------ _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users