Namespace declarations not reloaded if "not used"

Bug #166004 reported by Bug Importer
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Low
Jon A. Cruz

Bug Description

Whenever you add a namespace declaration within the
<svg> tag, it is ignored when reloading it (not when
saving it) if this namespace is not *explitely* used in
the SVG file.

By "not explicitely" used, I mean that the SVG file
does not declare any element with the namespace prefix
but such a prefix may be used within a text (of an
attribute or an element) as an XPath expression.

Example:

<svg
[...]
    xmlns="http://www.w3.org/2000/svg"
 [...]
    xmlns:dpi="http://www.eseo.fr/DoPI/2004/dopidom"
    xmlns:hid="http://www.eseo.fr/DoPI/2004/domino">

[...]
  <g
     id="exiter"
     dpi:component="sovigo.tools.Exiter :
[domino](//hid:sensor[@hid:name='key esc'])" />

</svg>

The dpi:component use an XPath expression that is based
on the hid namespace prefix. The namesapce declaration
for the prefix works fine, but the namespace with the
hid declaration is omitted whenever you reload the file...

In a general way, I think that Inkscape sould define
less specific rules and should respect as closer as
possible the semantic of the SVG recommandation (for
example, the attribute transform="translate(0,0)" is
automatically removed, the translate is recompute when
an x or y is specified, and so on...)

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

Thank you for taking the time to report this bug and helping to make Inkscape better. You reported this bug a long while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with latest Inkscape release? Thanks in advance.

Changed in inkscape:
importance: Medium → Low
status: New → Incomplete
Ryan Lerch (ryanlerch)
Changed in inkscape:
status: Incomplete → Invalid
Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Windows XP, Inkscape bzr rev. 9381.

tags: removed: linux
Changed in inkscape:
status: Invalid → Confirmed
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.