<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hi,<br>
    I've used the function generateSLD from the layerObj class to create
    a sld snippet, but the output was a empty sld file:<br>
    <br>
    <font size="-2"><StyledLayerDescriptor version="1.0.0"
      xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/sld">"http://www.opengis.net/sld"</a>
      xmlns:gml=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>
      xmlns:ogc=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a>
      xmlns:xlink=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xlink">"http://www.w3.org/1999/xlink"</a>
      xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
      xsi:schemaLocation=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/sldhttp://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">"http://www.opengis.net/sld
      http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"</a>><br>
      </StyledLayerDescriptor></font><br>
    <br>
    I'm using following mapfile with mapserver 5.6.5:<br>
    <br>
    <font size="-2">MAP<br>
      NAME "test.map"<br>
      SIZE 256 256    <br>
      RESOLUTION 72<br>
      <br>
      <br>
      OUTPUTFORMAT<br>
          NAME "aggpng24"<br>
          DRIVER "AGG/PNG"<br>
          MIMETYPE "image/png"<br>
          IMAGEMODE RGB<br>
          EXTENSION "png"    <br>
          FORMATOPTION "INTERLACE=OFF"<br>
          TRANSPARENT ON<br>
          FORMATOPTION "INTERLACE=OFF"<br>
      END<br>
      WEB<br>
          METADATA<br>
              "ows_onlineresource"   
      <a class="moz-txt-link-rfc2396E" href="http://dev/public/services/ows.php?map=test.map">"http://dev/public/services/ows.php?map=test.map"</a><br>
              "ows_title"    "test"<br>
              "ows_abstract"    ""<br>
              "wms_feature_info_mime_type"    "text/html"<br>
              "ows_service_onlineresource"    ""<br>
              "wms_srs"    "EPSG:32632 EPSG:4326 EPSG:900913"<br>
      <br>
          END<br>
          IMAGEPATH "/tmp/ms_tmp/"<br>
          IMAGEURL "/tmp/"    <br>
      END    <br>
      <br>
      LAYER<br>
          GROUP "test"<br>
          NAME "test"<br>
          TYPE LINE<br>
          STATUS OFF<br>
          METADATA<br>
              "ows_title"    "test"<br>
              "ows_extent"    "482003.57067363 5006503.5706736
      537996.42932637 5062496.4293264"<br>
              "ows_srs"    "EPSG:32632"<br>
              "gml_geometries"    "the_geom"<br>
          <br>
          END<br>
          PROJECTION<br>
              "+proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m
      +no_defs "<br>
          END<br>
          EXTENT 482003.57067363 5006503.5706736 537996.42932637
      5062496.4293264<br>
          CONNECTIONTYPE POSTGIS<br>
          CONNECTION "user=test password=test dbname=test host=localhost
      port=5432"<br>
          DATA "the_geom FROM test USING UNIQUE gid USING SRID 32632"<br>
          PROCESSING "CLOSE_CONNECTION=DEFER"<br>
          SIZEUNITS pixels<br>
          CLASS<br>
              NAME "l103106"<br>
              EXPRESSION ('[code]' eq 'L103106')<br>
              STYLE<br>
                  COLOR 76 230 0<br>
                  SYMBOL "CIRCLE"<br>
                  SIZE 3<br>
                  MINSIZE 3<br>
                  MAXSIZE 3<br>
                  WIDTH 3<br>
                  MINWIDTH 3<br>
              END<br>
          END<br>
          CLASS<br>
              NAME "l103107"<br>
              EXPRESSION ('[code]' eq 'L103107')<br>
              STYLE<br>
                  COLOR 56 168 1<br>
                  SYMBOL "CIRCLE"<br>
                  SIZE 2<br>
                  MINSIZE 2<br>
                  MAXSIZE 2<br>
                  WIDTH 2<br>
                  MINWIDTH 2<br>
              END<br>
          END<br>
      END<br>
      <br>
      ###### SYMBOLS #######<br>
      <br>
      SYMBOL<br>
      NAME "CIRCLE"<br>
      TYPE ELLIPSE<br>
      FILLED TRUE<br>
      POINTS<br>
      1 1<br>
      END<br>
      END<br>
      <br>
      <br>
      END #MAP</font><br>
    <br>
    Can somebody help me?<br>
    <br>
    Best regards,<br>
    Daniel<br>
  </body>
</html>