Re: Prefix rewriting considerations

On 4/13/10 12:41 PM, "Meiko Jensen" <Meiko.Jensen@rub.de> wrote:

> continuing with today's discussion on prefix rewriting I wanted to bring
> up the prefix-free canonicalization we published last year (ACM SWS
> 2009). The approach basically consists in rewriting every XML element to
> a representation like this: <localname xmlns="namespace-uri">
> This way, you don't need prefixes at all (besides for the attributes),
> the resulting XML is still well-formed, there is no "unsigned"
> information besides the prefix name, and you don't need doing
> digests+base64 stuff nor excessive search for predefined prefix
> mappings. 

FWIW, this is exactly what we've always done in Jabber/XMPP: no prefixes, no
namespaced attributes, apply the namespace of an element to all elements and
attributes below that element in the tree until and unless you come upon a
child element that is qualified by a different namespace. This is probably a
legacy of the time when Jabber was first defined because namespaces were not
well-understood back then (1998/1999), but it has worked quite well for us
since then. I never knew that this approach had a fancy name ("prefix-free
canonicalization")...

Peter

Received on Wednesday, 14 April 2010 02:15:44 UTC