Hello,
 
Apparantly, Inkscape does not parse the file correctly when it is loaded, however Inkscape _is_ able to understand it! Load the file and go to the XML editor in Inkscape. Go to the path with the gradient, select one of its attributes and press the "set" button without changing anything. Then suddenly Inkscape reparses that piece of SVG and reformats it into something it does understand and the image is displayed correctly.
 
Could you please post a bugreport about this ? (perhaps including my comment above).
 
Thanks!
    Johan
 
 
 


From: inkscape-user-bounces@lists.sourceforge.net [mailto:inkscape-user-bounces@lists.sourceforge.net] On Behalf Of Sujesh Babu N
Sent: donderdag 11 januari 2007 10:22
To: inkscape-user@lists.sourceforge.net
Subject: [Inkscape-user] SVG not displaying correctly in inkscape

Hi All,
 
I tried to open a small SVG file in inkscape , but it is not displaying correctly .The file is attached here with . The svg is viewing correctly in adobe svg viewer and other editors.
 
Any idea , why the svg graphic is not displaying correctly in Inkscape? Any help will be appreciated .
 
Thanks
Sujesh
 
COntents of the SVG FIle
 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd ">
<svg baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink " width="348" height="40" viewBox="0 0 348 40">
<switch>
<foreignObject requiredExtensions="http://ns.adobe.com/AdobeIllustrator/10.0/ " x="0" y="0" width="1" height="1" content="structured text"/>
<g>
<g>
<path fill-opacity="0.62" stroke-opacity="0.62" fill="url(#_x33__x5F_vaaleampi_2_)" d="M348,37c0, 1.656-1.343,3-3,3H3       c-1.656,0-3-1.344-3-3V3c0-1.656,1.344-3,3-3h342c1.657,0,3,1.344,3,3V37z"/>
<defs>
<linearGradient id="_x33__x5F_vaaleampi_2_" gradientUnits="userSpaceOnUse" x1="0" y1="20" x2="348" y2="20">
<stop offset="0" style="stop-color:#227BD4"/>
<stop offset="1" style="stop-color:#D9EFFF"/>
</linearGradient>
</defs>
</g>
</g>
</switch>
</svg>