Thanks Andrea! Works fine even if it does not validate. I guess it would be smart to change to the CSS plugin for SLD? ~asle
2012/5/8 Andrea Aime <[email protected]>: > On Tue, May 8, 2012 at 12:34 PM, Asle Benoni <[email protected]> wrote: >> >> Hi, >> I have tried to follow the docs for SLD styling and rules (will soon >> convert to the CSS module!). I am trying to use <Halo> but I get this >> error. >> What am I doing wrong? > > > You are specifying the Halo out of order. It should work and be parsed > anyways > if you press submit, but it's not valid xml schema wise. > > The order is as follows: > > <xsd:element name="TextSymbolizer" substitutionGroup="sld:Symbolizer"> > <xsd:annotation> > <xsd:documentation> > A "TextSymbolizer" is used to render text labels according to > various graphical parameters. > </xsd:documentation> > </xsd:annotation> > <xsd:complexType> > <xsd:complexContent> > <xsd:extension base="sld:SymbolizerType"> > <xsd:sequence> > <xsd:element ref="sld:Geometry" minOccurs="0"/> > <xsd:element ref="sld:Label" minOccurs="0"/> > <xsd:element ref="sld:Font" minOccurs="0"/> > <xsd:element ref="sld:LabelPlacement" minOccurs="0"/> > <xsd:element ref="sld:Halo" minOccurs="0"/> > <xsd:element ref="sld:Fill" minOccurs="0"/> > > <!-- GeoServer specific extensions, these are not part of the > SLD 1.0 standard --> > <xsd:element ref="sld:Graphic" minOccurs="0"/> > <xsd:element ref="sld:Priority" minOccurs="0"/> > <xsd:element ref="sld:VendorOption" minOccurs="0" > maxOccurs="unbounded" /> > > > </xsd:sequence> > </xsd:extension> > </xsd:complexContent> > </xsd:complexType> > </xsd:element> > > You should move it below the Fill element if you want it to be fully > schema compliant. As said, the SLD 1.0 parser is lenient, so it > should be able to actually use it even if out of order (e.g., the > halo should show up in the maps anyways). > > Cheers > Andrea > > -- > Ing. Andrea Aime > GeoSolutions S.A.S. > Tech lead > > Via Poggio alle Viti 1187 > 55054 Massarosa (LU) > Italy > > phone: +39 0584 962313 > fax: +39 0584 962313 > mob: +39 339 8844549 > > http://www.geo-solutions.it > http://geo-solutions.blogspot.com/ > http://www.youtube.com/user/GeoSolutionsIT > http://www.linkedin.com/in/andreaaime > http://twitter.com/geowolf > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
