The font is defined using CSS notation; including color (note American spelling). You would do this by having two FeatureType style rules - one for all the features and one with a Filter based on param1 ... for that rule you will have a different text symbolizer using your desired colour.
It is easiest to do this kind of thing in uDig (where there is a text area to edit your SLD file), hack away on the file until you see what you want - and then export it out for GeoServer (or in this case your custom application). Cheers, Jody > I was wondering if it's possible - and if so - how > can I change the font color of an attribute of a feature. > > The feature has the following attributes: > the_geom > cityname > param1 > param2 > param3 > param4 > param5 > param6 > citynamestatic > > I filter the feature out with a compareFilter -> FeatureCollection -> > feature. And now I change the value of param1 and want also to change the > color of the font. But only for this feautre, and not adding a layer or > so... > The initial definition of the Style is in a XML file. > > Thanks in advance > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
