[Geoserver-devel] [jira] Created: (GEOS-1948) When an sld refers an external graphic that's not there, generated KML is invalid (unclosed elements)

When an sld refers an external graphic that's not there, generated KML is invalid (unclosed elements)
-----------------------------------------------------------------------------------------------------

                 Key: GEOS-1948
                 URL: http://jira.codehaus.org/browse/GEOS-1948
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 1.6.4
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 1.6.5

Try with this SLD:

{code}
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
    xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
    xmlns="http://www.opengis.net/sld&quot;
    xmlns:ogc="http://www.opengis.net/ogc&quot;
    xmlns:xlink="http://www.w3.org/1999/xlink&quot;
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
    <!-- a named layer is the basic building block of an sld document -->

  <NamedLayer>
    <Name>Default Point</Name>
    <UserStyle>
        <!-- they have names, titles and abstracts -->
     
      <Title>A boring default style</Title>
      <Abstract>A sample style that just prints out a purple square</Abstract>
      <!-- FeatureTypeStyles describe how to render different features -->
      <!-- a feature type for points -->

      <FeatureTypeStyle>
        <!--FeatureTypeName>Feature</FeatureTypeName-->
        <Rule>
          <Name>Rule 1</Name>
          <Title>RedSquare</Title>
          <Abstract>A red fill with an 11 pixel size</Abstract>

          <PointSymbolizer>
            <Graphic>
              <ExternalGraphic>
                <OnlineResource xlink:type="simple" xlink:href="I_am_not_there.png"/>
                <Format>image/png</Format>
              </ExternalGraphic>
              <Size><ogc:Literal>32</ogc:Literal></Size>
            </Graphic>
          </PointSymbolizer>
        </Rule>

        </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>
{code}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira