<Map srs="+proj=longlat +ellps=airy +datum=OSGB36 +no_defs" minimum-version="0.7.2">

  <FileSource name="foo">../images/</FileSource>
  
  <Style name="1">
    <Rule>
        <Filter>([EAS_ID]&lt;=170) and ([EAS_ID] &lt;&gt; 165)</Filter>
        <!-- alignment="local" is default -->
        <PolygonPatternSymbolizer alignment="local" file="../images/checker.jpg"/>
        <LineSymbolizer stroke="green" stroke-width="2"/>
        <TextSymbolizer size="10" dy="20" face-name="DejaVu Sans Book" halo-radius="1">'local'</TextSymbolizer>
    </Rule>
    <Rule>
        <ElseFilter/>
        <PolygonPatternSymbolizer alignment="global" file="../images/checker.jpg"/>
        <LineSymbolizer stroke="yellow" stroke-width=".5"/>
        <TextSymbolizer size="10" dy="20" face-name="DejaVu Sans Book" halo-radius="1">'global'</TextSymbolizer>
    </Rule>
  </Style>

  <Layer name="lay" srs="+proj=longlat +ellps=airy +datum=OSGB36 +no_defs">
    <StyleName>1</StyleName>
    <Datasource>
      <Parameter name="type">shape</Parameter>
      <Parameter name="base">../../data/shp/</Parameter>
      <Parameter name="file">poly.shp</Parameter>
    </Datasource>
  </Layer>
  
</Map>