inkscape removes parts of tags

Discuss SVG code, accessible via the XML Editor.
Sidar
Posts: 11
Joined: Fri Dec 25, 2009 10:37 am

inkscape removes parts of tags

Postby Sidar » Mon Nov 28, 2011 3:10 pm

Hi,

I have objects with custom tags like:
peg:range

But sometimes inkscape removes all the "peg:" parts.
When I ctrl+c an object and past it, the same effect happens.

This is annoying as I have to setup tons of objects again.

philipp
Posts: 7
Joined: Wed Jun 08, 2011 12:56 am

Re: inkscape removes parts of tags

Postby philipp » Tue Nov 29, 2011 1:19 am

Hello
I already had the same problem. I made an svg with inkscape and than added a namespace to this. After reopening and saving it with inkscape, the namespace was deleted. After using this namespace for even a single attribute the namespace and the attribute was not deleted anymore.
When I opened the SVG in Inkscape an simultaneously in notepad++ all the changes i made with notepad++ (saved them there) where discarded when i saved the file with inkscape. So Inkscape does not care about changes made by another program and does not prevent other programs to change the file while it is opened. I uses the latest release under windows.

greetings philipp

User avatar
LiquidAsh
Posts: 71
Joined: Fri Apr 22, 2011 11:35 pm
Contact:

Re: inkscape removes parts of tags

Postby LiquidAsh » Tue Nov 29, 2011 3:12 am

Seems related to this problem of adding/editing the svg xmlns attribute from an extension(?): viewtopic.php?f=22&t=1055

I suppose a temporary fix would be to remove the colon and then use something like xslt to transform back to the correct attribute namespace:name. This might need to be a post-inkscape process, if it doesn't work as an xslt extension (as the link above suggests).

Sidar
Posts: 11
Joined: Fri Dec 25, 2009 10:37 am

Re: inkscape removes parts of tags

Postby Sidar » Tue Nov 29, 2011 3:59 am

LiquidAsh wrote:Seems related to this problem of adding/editing the svg xmlns attribute from an extension(?): viewtopic.php?f=22&t=1055

I suppose a temporary fix would be to remove the colon and then use something like xslt to transform back to the correct attribute namespace:name. This might need to be a post-inkscape process, if it doesn't work as an xslt extension (as the link above suggests).



Well im using Inkscape as a level editor for my project. I'm just making sure the xml data is parsed correctly. Eventually "designers" have to work with it and I don't feel like shoving technical stuff on them.

I guess I will have to do without the namespaces then...=(


Return to “SVG / XML Code”