Reference to external css stylesheet removed when saving as plain svg

Bug #1059244 reported by Kris on 2012-09-30
This bug affects 3 people
Affects Status Importance Assigned to Milestone

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.

Kris (kris-degussem) wrote :
jazzynico (jazzynico) wrote :

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

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  Edit
Everyone can see this information.

Other bug subscribers