![](https://secure.gravatar.com/avatar/eb3fe37da4a199eb4e3b479d8a57f808.jpg?s=120&d=mm&r=g)
On Sat, 2004-12-25 at 13:11, bulia byak wrote:
but the probable existence of "namespace-naive" scripts made by users that deal with Inkscape SVG and would break if we add the svg: prefix.
Hrm, yes... part of me would just rather they break so they learn to fix their scripts, but that's not really very nice ^_-
While there's no trouble making SVG the default namespace for documents that don't contain non-namespaced elements (the common case), there are some difficulties for documents that do. This is because the NULL namespace can't be bound to a prefix, it can only be the default.
Long-term, the solution is to move xmlns attributes down to individual elements as needed, but that's non-trivial to implement.
Short-term, we'll just put the xmlns declarations up top, and make SVG the default namespace unless there is a non-namespaced element in the document.
I wish XML namespaces didn't have such a bolted-on feel.
-mental