I have a DB in pgAdmin and a table with the name: "description" I can only have 2 fields: "car" or "bike", in geoserver I configured it and it works:
<Label>
<ogc:PropertyName>descricao</ogc:PropertyName>
</Label>
<Font>
<CssParameter name="font-family">Arial</CssParameter>
<CssParameter name="font-style">Normal</CssParameter>
<CssParameter name="font-size">12</CssParameter>
</Font>
<Fill>
<CssParameter name="fill">#b7d5ff</CssParameter>
</Fill>
But I need two different formatting per given data, that is, if it is "car" one color, if it is "bicycle" another. How can I configure GeoServer?