xml-stylesheet in a svg get deleted when the svg is saved

Bug #168631 reported by Frodrigo
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Unassigned

Bug Description

Open a svg with some <?xml-stylesheet ... ?> and save it with Inksape lost
all sheet style import definition.

e.g.:
<?xml-stylesheet type="text/css" href="css/default.css" ?>
aren't keep after save.

Tags: css saving svg
Revision history for this message
Ryan Lerch (ryanlerch) wrote :

can you provide some sample files and some more information on what version of inkscape you are using?

Changed in inkscape:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Frodrigo (frodrigo) wrote :

Use 0.45.1, same probleme with SVN (0.45+devel, built Dec 12 2007).
Open a file begins with
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet type="text/css" href="default.css" ?>
<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://web.resource.org/cc/"

And save it. Now we have:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://web.resource.org/cc/"

We just lost css import line.

Revision history for this message
nightrow (jb-benoit) wrote :

It is confirmed here with the sample files.
Dunno if this is related but the sample is black on inskcape and has a light brown color on firefox ....

Changed in inkscape:
status: Incomplete → Confirmed
Revision history for this message
Frodrigo (frodrigo) wrote :

I create this bug about CCS ref deletion. Using css on render is an other porblem. Some part of css isn't implemented on Inkscape yet.

Revision history for this message
sas (sas-sas) wrote :

This is a special case of bug 199435 ("Inkscape strips processing instructions").

Revision history for this message
MenTaLguY (mental-deactivatedaccount) wrote :

199435 was already fixed in trunk.

Changed in inkscape:
status: Confirmed → Fix Committed
Revision history for this message
sas (sas-sas) wrote :

I notice that the fix doesn't work when saving as Plain SVG, so perhaps this bug should be kept open.

su_v (suv-lp)
tags: added: css saving
Revision history for this message
Kris (kris-degussem) wrote :

Already fixed in 0.48.x (my version reports revision 9654)

Changed in inkscape:
status: Fix Committed → Fix Released
Revision history for this message
su_v (suv-lp) wrote :

>> I notice that the fix doesn't work when saving as Plain SVG,
>> so perhaps this bug should be kept open.

> status: Fix Committed → Fix Released

Does a follow-up report exist? Bug #419266 “class attribute not saved in plain svg“ covers class attributes of SVG elements, but not the inline stylesheet itself.

Revision history for this message
su_v (suv-lp) wrote :

Correction:
- (…), but not the inline stylesheet itself.
+ (…), but not the reference to the external stylesheet itself.

Revision history for this message
Kris (kris-degussem) wrote :

Follow up report: Bug #1059244

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.