[jdev] Re: XHTML-IM XEP implementation

Maciek Niedzielski machekku at uaznia.net
Thu Jan 4 13:50:20 CST 2007


Peter Saint-Andre wrote:
> Alexander Gnauck wrote:
>> I would like prefer smth which allows multipart
>> messages with different content types where plain text is always
>> required. Content types could be plain text, xhtml, rtf etc...
> 
> Hmm, there are many issues with email to jabber translation (attached
> files etc.). They are not easy to work out, but it would be interesting
> to try. :-)

If we want to replace email, maybe copy email's solution?
I can imagine something like this:

<message xmlns:content="....">
 <body content:type="text/plain">
  (plain text would still use body element to be backwards compatible)
 </body>

 <content:part type="text/html">
  <html xmlns="......">.....</html>
 </content:part>

 <content:part type="image/png" encoding="base64"
               disposition="inline" filename="x.png">
   ...............................
 </content:part>
</message>

-- 
Maciek                       A: It's against natural order of reading.
 xmpp:machekku at uaznia.net   Q: Why is that?
 xmpp:machekku at chrome.pl   A: People answering above quoted text.
                          Q: What's the most annoying on newsgroups?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
URL: <https://www.jabber.org/jdev/attachments/20070104/d874dc6b/attachment-0002.pgp>


More information about the JDev mailing list