Bug 74736 - calc exports chart as invalid svg
Summary: calc exports chart as invalid svg
Status: RESOLVED DUPLICATE of bug 74218
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: x86 (IA32) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-09 08:49 UTC by Martin Trautmann
Modified: 2014-02-13 18:39 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
chart for wikipedia (35.17 KB, image/svg+xml)
2014-02-09 08:49 UTC, Martin Trautmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Trautmann 2014-02-09 08:49:45 UTC
Created attachment 93695 [details]
chart for wikipedia

As a followup of Bug 72144: With 4.0 an empty svg was exported.
Now, with 4.2, a reasonable content was created.

However, the svg is considered as invalid code.
What's wrong about the syntax? The major difference I see is some better looking text wrapping.

Firefox complaints: "This XML file does not appear to have any style information associated with it."

Wikimedia complaints: "Invalid SVG file: Expected <svg> tag, got svg in NS )"

As a side note: text within the graphics disappeared from an .ods file when changing form 4.0 to 4.2
Comment 1 A (Andy) 2014-02-09 11:30:30 UTC
reproducible with LO 4.2.0.4 (Win 8.1)

Steps done:
1. Open CALC
2. Create a simple chart
3. Select the chart and make a right mouse click and select EXPORT AS IMAGE
4. Save it as a SVG file
5. Open it with Firefox, Internet Explorer and LO DRAW

Results:
Internet Explorer opens the file but shows no chart only data.
Firefox does not open the file and shows "This XML file does not appear to have any style information associated with it".
DRAW opens the file and shows the chart, but without title, axes labeling and legend.
Comment 2 Martin Trautmann 2014-02-10 13:07:48 UTC
I guess Bug 74218 offers a solution
Comment 3 Tomaz Vajngerl 2014-02-13 18:39:01 UTC
I think the missing xmlns is the issue. Marking as duplicate.

*** This bug has been marked as a duplicate of bug 74218 ***