[JDEV] Rich Text in Messages
Thomas Charron
tcharron at ductape.net
Sat Dec 9 09:45:22 CST 2000
Using extended namespaces.. That's what the 'x' tag is used for. You
simply have two versions of the message.. Plain text in the body tag, and
rich text such as XHTML in a <x xmlns="whateverxhtmlis>SomeDatainXHTML</x>
A rough example from the jpg (not 100% acurate)
<message to="horatio at denmark">
<body>Angels and Ministers of Grace, defend us!</body>
<html xmlns="http://www.w3.org/TR/xhtml-basic">
<body>
<div style="font-size: medium;
color: red;
text-align: center">
Angels and Ministers of Grace, defend us!
</div>
</body>
</html>
</message>
The html part if what I find incorrect, as it's not part of any of the
DTD's I've seen. If anything it's be more like <x xmlns="jabber:x:xhtml">
or something..
From: Justin Van Patten <kvanpat790 at yahoo.com>
To: <jdev at jabber.org>
Sent: Saturday, December 09, 2000 5:14 AM
Subject: Re: [JDEV] Rich Text in Messages
> How are you doing this? How will the clients that
> aren't able to "format" text be able to get to the
> plain text?
> --- Ryszard Sommefeldt <ryszards at xnl-interactive.com>
> wrote:
> > I have a Win32 client in development (unreleased)
> > that
> > does message formatting using HTML and XHTML
> > Basic. It does so with Groupchat and normal Jabber
> > messages.
More information about the JDev
mailing list