Hi
On Mo, Dez 22, 2003 at 11:55:15 +0000, bulia byak wrote:
Still does not work. Now the problem is namespaces. If I drag a document containing one <rect>, it appears as svg:rect within inkscape and is not displayed. (Even though in original SVG, there was no prefix.) This is because internally inkscape, simplistically, stores names with prefixes, so a mismatch in a prefix makes an element unrecognizable.
I'm not sure what is the best/simplest to fix this: make it so that dragged SVG is inserted without namespace prefixes, or make it so that Inkscape can handle full qualified names (with namespace URI and prefix for each name). I guess the first way is simpler. Mental, can you comment?
Hm. My code does almost the same as the svg import code does (well, i copied from there ;)), so if you import you should get the same symptops, right?
Alex