Hi,
I'm not sure yet it is a good idea, but my current work on my Inkscape Boardgames Extensions is adding some extra information to the generated SVG files, to be able to support making game components for SVG-based (web) games. Not sure it will be used much, even by me, but perhaps there are other uses of having metadata in the elements easily accessible to external scripts or other Inkscape effects (ie the hexmap generator is now adding new attributes for many generated objects to describe what coordinate in the grid they have). The problem is adding the new attributes currently requires, I believe, some ugly code (manually adding {http://namespace-url}attribute) and the resulting short namespace identifier becomes an automatically generated ns0, since the new namespace is not in the NSS mapping of inkex.py).
I guess basically what I'm trying to say is that perhaps it would be useful to provide a simple API in inkex.py to add namespaces to the NSS mapping and then use them like the other namespaces already in the mapping. Then perhaps in a future version the code in my effects can look a bit prettier, and it might inspire others to come up with useful ways of adding special information to generated SVG in other effects.
I guess there may be some workaround using some Python feature I have forgotten about.
