<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">

    <Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
        <StyleName>My Style</StyleName>
        <Datasource>
            <Parameter name="type">osm</Parameter>
            <Parameter name="file">../data/lines.osm</Parameter>
        </Datasource>
    </Layer>

    <Style name="My Style">
        <Rule>
            <LineSymbolizer stroke-width="12" stroke="red"/>
            <TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="line" spacing="20">[name]</TextSymbolizer>
        </Rule>
    </Style>

</Map>