On Fri, Sep 24, 2010 at 10:33 AM, daniel.gillespie <daniel.gilles...@noaa.gov> wrote: > Hello all: > > I am trying to create an SLD that has multiple rules for rendering > polygons with different attribute-based styles at different scales. > That is, at the largest zoom level, there are 3 different sets of > polygon fill based on the value of an attribute. At the middle zoom > level, there will be 3 new sets of polygon fill based on the same > attribute. At the next level of zooming in, there will be an additional > 3 sets of polygon fill. > > In my first attempt, the <Rule> element appears at 2 different levels in > the XML hierarchy. I think that this is causing the XML validation to fail. > > Is there a different approach to accomplish the same goal? >
You can't nest <Rule> elements. You just need to have them listed serially. I've attached a fixed version - I can't be sure it does what you expect but is valid xml. Ian -- Ian Turton
complex.sld
Description: Binary data
------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users