[Standards] Proposed XMPP Extension: Data Element
stpeter at stpeter.im
Mon Nov 12 21:39:22 UTC 2007
Andreas Monitzer wrote:
> On Nov 10, 2007, at 00:38, Peter Saint-Andre wrote:
>>> URL: http://www.xmpp.org/extensions/inbox/data-element.html
>> See, that was easy, wasn't it? ;-)
> I can see three issues here:
> 1. Your extension doesn't have any namespace
Right, I wrote it up too fast, the example is missing the namespace
> and doesn't use the x-element.
The element name doesn't matter. The <x/> name was just an early
convention among the Jabber developers in 1999 or so.
> 2. URLs are limited to 1024 bytes IIRC, so your 10k limit can not be
There is no limit on URIs:
However, in the old days some clients and servers didn't handle long
URIs (and some may still not).
> If you go into the trouble of inventing a new element for it,
> why not put the base64-data between the tags?
> <message from='ladymacbeth at shakespeare.lit/castle'
> to='macbeth at chat.shakespeare.lit' type='groupchat'>
> <body>Yet here's a spot.</body>
> <data type='image/png;base64' alt="A
Well that's not a data: URL, and I figured that some software would
already have support for data: URLs.
> 3. Your data tag in the example starts with a ' but ends with a ". (ok,
> that's nitpicking)
See above on writing it up too fast.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7338 bytes
Desc: S/MIME Cryptographic Signature
More information about the Standards