[JDEV] Rich Text in Jabber

Mark Zamoyta mark at lakeclear.com
Wed Sep 27 12:29:09 CDT 2000


Hello,
I see that the JPG recommends XHTML Basic for rich text...

<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>

I went to the w3.org site to figure this out, and after jumping around for
an hour I realize I gotta be an expert in HTML modules & XML to figure this
out!!  Does anyone know a site that lists all the tags and attributes for
XHTML Basic in a simple format?

Another thing I don't get is the style="..." attribute in the example.  The
whole point of XML is to simply hold data in tags and attributes, however
this attribute needs its own parser to grab 3 different values out of it!!
I know it's not brain surgery to parse it, but it defeats the purpose of
using XML.

If someone can point me to a site that explains this simply I'd appreciate
it... otherwise I'll try to decrypt w3.org documents!   Or is there a better
standard Jabber can use for rich text?

Thanks,
Mark






More information about the JDev mailing list