[JDEV] Rich Text in Messages

Max Horn max at quendi.de
Mon Dec 11 10:19:40 CST 2000


At 10:56 Uhr -0500 11.12.2000, tcharron wrote:
>     The only thing I want to ask about this is this line:
>
><html xmlns="http://www.w3.org/1999/xhtml">
>
>     Why would this not be part of an extended namespace, aka:
>
><x xmlns="http://www.w3.org/1999/xhtml">
>
>     The entire point of the x tag was for exactly this.  What happens next
>year when everyone starts formating in 'Joes script of the year'?  By adding
>a tag specifically for a given display type, it's locking down the protocol.

The x tag is really only thought for jabber only extensions.

In fact, you *have* to use <html 
xmlns="http://www.w3.org/1999/xhtml"> if you ever want to validate 
the jabber XML using a DTD. Reason: the XHTML DTD requires as root 
element <html> - but the tag containing the xmlns attrib already 
belongs to that NS; thus, you have to embed XHTML into a <xhtml> 
element.


Max
-- 
-----------------------------------------------
Max Horn
International C/C++/Internet Development

email: <mailto:max at quendi.de>
   web: <http://www.quendi.de>
phone: (+49) 6151-494890




More information about the JDev mailing list