Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How to style various points with different image according to value(text) in the column of table(layer)?
GeoServer has some examples of how to style using SLD called SLD cookbook.
In your case you want to combine the Attribute-based point example and the Point as graphic example.
Required, but never shown