Reference to external css stylesheet removed when saving as plain svg

Bug #1059244 reported by Kris
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Medium
Unassigned

Bug Description

This is a follow up report of bug #168631.
The xml-stylesheet tag with a link to a css stylesheet is removed when saving as "Plain SVG" (no problem when saving in other svg types).

For example the line from back.before.svg of the attachment :
   <?xml-stylesheet type="text/css" href="default.css" ?>

is removed when saving as plain svg.

Tags: css saving svg
Revision history for this message
Kris (kris-degussem) wrote :
Revision history for this message
jazzynico (jazzynico) wrote :

Related: Bug #419266 "class attribute not saved in plain svg".

Revision history for this message
Martin Owens (doctormo) wrote :

This bug isn't a duplicate of 419266, instead this bug is because of the way plain svg is generated in extension/internal/svg.cpp, the duplication of the document's root removes all comments and PI nodes that came before the root.

To fix this, a duplicate document function must be added to our xml library. this must duplicate the document node itself (not the root node) and must return a document node (the current duplicate returns an normal node only)

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.