[jdev] Re: XHTML-IM XEP implementation

Matthias Wimmer m at tthias.eu
Fri Jan 5 07:10:00 CST 2007

Hi Maciek!

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

Well this one would not work. HTML is based on SGML which cannot always 
directly included in XML.

You will either have to include it escaping the special characters:

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

Or you have to restrict it to use XHTML (which is based on XML as you know):

<content:part type="application/xhtml+xml">
     <html xmlns="......">.....</html>

... and you would have to define (either implicit or explicit) which 
types are included directly and which have to be escaped.

Personally I prefere using XHTML instead of HTML. But if you are really 
XHTML (1.1) aware, you should also have no problems, that XHTML-IM has 
its own profile of XHTML.

Due to my feelings it is correct, that we limit the set of allowed 
elements. If a client has problems implementing this, it is caused 
because they are trying to use a UI widget, that is designed for HTML 
and not for XHTML.

But I am no client developper, so please let the other people discuss 
this topic ...


Matthias Wimmer      Fon +49-700 77 00 77 70
Züricher Str. 243    Fax +49-89 95 89 91 56
81476 München        http://ma.tthias.eu/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4263 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20070105/37d446bc/attachment-0002.bin>

More information about the JDev mailing list