[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmpp] Fwd: Fwd: Use of namespace in RFC 3920



> But for some strange reason XMPP wants me to make some
> kind of exception:

The reason is not strange at all.

If you have a namespace prefix in one stream header, it must be in
another where it is used.  So if you allow arbitrary XML like you have
proposed there, then every server will have to translate from one
representation to another.  This means a complete parse and
reserialization cycle at each point.

If we all agree on a default namespace, this is not required, and is a
huge gain in efficiency.  Now XMPP servers don't even have to parse
stanzas.  They can simply regex out the to/from attributes and pass
the stanza on as a bag of bytes.

The <stream:stream> prefixes aren't really that big of a deal because
they are only between two endpoints and don't leak out to other
places, which is why I think it's ok to relax those.

jack.

Note Well: Messages sent to this mailing list are the opinions of the senders and do not imply endorsement by the IETF.