[Geoserver-devel] [jira] Created: (GEOS-225) Generated SVG non conformant to the spec

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/GEOS-225

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: GEOS-225
    Summary: Generated SVG non conformant to the spec
       Type: Bug

     Status: Open
   Priority: Major

Original Estimate: Unknown
Time Spent: Unknown
  Remaining: Unknown

    Project: GeoServer
   Versions:
             1.2.2

   Assignee: Chris Holmes
   Reporter: Jean-Claude Moissinac

    Created: Fri, 8 Oct 2004 5:11 PM
    Updated: Fri, 8 Oct 2004 5:11 PM
Environment: Not relevant

Description:
I get the result from the sample installed by default.
With the request
http://localhost:8090/geoserver/wms?request=GetMap&layers=bc_roads&bbox=489153,5433000,529000,5460816&width=800&height=400&srs=EPSG:27354&styles=normal&Format=image/svg+xml
I get an SVG reply which is well displayed with IE and Adobe SVG Viewer.
But it doesn't display with some other viewers and the reason probably is a non-conformance.
The SVG spec says:
"In all cases, for compliance with the "Namespaces in XML" Recommendation [XML-NS], an SVG namespace declaration must be provided so that all SVG elements are identified as belonging to the SVG namespace. The following are possible ways to provide a namespace declaration. An xmlns attribute without a namespace prefix could be specified on an 'svg' element, which means that SVG is the default namespace for all elements within the scope of the element with the xmlns attribute:
..."

and the generated SVG starts like this:
<?xml version="1.0" standalone="no"?>
  <!DOCTYPE svg
  PUBLIC "-//W3C//DTD SVG 20001102//EN"
  "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd&quot;&gt;
<svg
  stroke="green"
  fill="none"
  stroke-width="0.001%"
  width="800"
  height="400"
  viewBox="489153 5433000 39847 27816"
  preserveAspectRatio="xMidYMid meet">
...

The xmlns attribute is missing and could be introduced like this:
<svg xmlns="http://www.w3.org/2000/svg&quot;\.\.\.\.\.\.

---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira