On Wed, Apr 23, 2008 at 10:55:59AM -0500, Aaron Spike wrote:
bulia byak wrote:
** (inkscape:17489): WARNING **: Extension definition started with <inkscape-extension> instead of extension:inkscape-extension. Extension will not be created.
Does this mean that Inkscape requires a certain text (namely "extension:") for the xmlns namespace prefix? I think that would be bad.
Aaron
Well - no, not in the XML file itself - just the xmlns="..." attribute on the root <inkscape-extension> element is sufficient. If we did xmlns:extension="..." than it would be a different story but with just one namespace in the file setting the default namespace seems to work fine.
The other issue is, that when there is a namespace applied Inkscape XML handler adds the namespace prefix to the element's name - even for the default namespace. Perhaps then the warning is somewhat misleading but I've now added a pointer to the WIKI in that message so I hope this helps.
PS. I am personally not convinced that the way current XML parser works with regards to namespace handling is the most sensible one, but that's another story. Perhaps adding a "local-name" property on the node would be a solution.
-- Marcin Floryan http://marcin.floryan.pl/ [GPG Key ID: 0D5581C5]