[XML-SIG] expat namespace_separator in Python 2.1

James Tauber jtauber@jtauber.com
Tue, 24 Apr 2001 19:58:51 -0400


> > The key issue that eikeon forgot to mention is that this is for RDF
where
> > namespaceURI+localName are concatenated to form property URIs. Without
the
> > ability to use '' we have to do a split+join on every element coming
back
> > from expat.
> >
> Aren't those two parts usually joined with a "#" symbol?

Nope. The # ends up being at the end of the namespace, it isn't a separator.
That is done sometimes so that the URI can refer to an actual element in an
XML document (via its ID) but this don't not have to be the case. You can
have a property http://foo.com/bar which could be serialized any of

   <bar xmlns="http://foo.com/">...</bar>
   <ar xmlns="http://foo.com/b">...</ar>
   <r xmlns="http://foo.com/ba">...</r>

Now, I don't like this but it's the way it works.

James