First: the above banner links this to How to use a sld file with Openlayers using OSM data? , but look update2.
I would like to add rail-road hatching to my OpenLayers map with a Symbolizer. Example how that is done in GeoServer is at  and there I could do that like this:
<FeatureTypeStyle> <Rule> <LineSymbolizer> <Stroke> <CssParameter name="stroke">#333333</CssParameter> <CssParameter name="stroke-width">3</CssParameter> </Stroke> </LineSymbolizer> <LineSymbolizer> <Stroke> <GraphicStroke> <Graphic> <Mark> <WellKnownName>shape://vertline</WellKnownName> <Stroke> <CssParameter name="stroke">#333333</CssParameter> <CssParameter name="stroke-width">1</CssParameter> </Stroke> </Mark> <Size>12</Size> </Graphic> </GraphicStroke> </Stroke> </LineSymbolizer> </Rule> </FeatureTypeStyle>
(This is only example directly from link, not exactly making the desired thing, but the shower of idea only)
Picture about what I get with that example code below.
Now, after that on screen, I can go further and get what I want, but the issue is the lines are a pure line VectorFeature coming to my code and I have to do the same thing with OpenLayers.
How I could come up with vertical lines, like done in GeoServer, now with OpenLayers Symbolizer? How to substitute lines with Z and get an electricity line styling?
My ideas so far:
I accomplished a two line road with black and white styles combined above each other and thought, that having a dash that is very long but has a little cap with white and very broad width and then equal black line with same width, there should come a vertical black line every certain period. My issue is to substitute though the lines with Z symbols and to that I run out of ideas. Playing with lines comes to end here.
My issue is to know how to get a symbol with certain cap to line. Then is everything cool.
Looking up for the docs  is not so promising, but maybe a custom style still is possible.
Changes to OL renderer is needed, so that when parsing sld to svg it "handles" the new stuff properly. How to do that? Well, maybe I post answer later, if I don't get any hints before I invent it myself.