[JDEV] Rich Text in Messages

David Waite dwaite at jabber.com
Mon Dec 11 14:46:17 CST 2000


The fact is that if x or query are listed in any existing jabber DTD, that is
an error.  We aren't talking about extending the jabber DTD, but allowing a
new type of data to be inserted/'spliced'.

If you just put 'html' without the xmlns, it would indeed be an error as you
would still be using the jabber DTD. As soon as you put a new default
namespace, you are now using that namespace's DTD.

Of course, anyone knowing the exact spec for XML Namespaces is more than
welcome to clarify or to correct me :)

-David Waite

tcharron wrote:

> From: "David Waite" <dwaite at jabber.com>
> Subject: Re: [JDEV] Rich Text in Messages
>
> > It is not adding a new tag to the Jabber DTD. It is tacking a namespace
> onto
> > the 'document' which is the Jabber Session. It really is the correct way
> to do
> > things. Technically <x>/<query> do not belong to the jabber document at
> all,
> > but are there as 'recommendations' for jabber-related extensions.
>
>   Err, no, nowhere in the old DTD's is the <html> tag present.  That's a
> brandy spanking new tag under the message tag.
>
> > To put it another way - I cannot pass the xhtml content off to a view
> control
> > without changing the 'x' tag to 'html' - the data being sent in that case
> > would be invalid.
>
>   Yes, you could.
>
> <x xmlns="jabber:x:xhtml>
> <html xmlns=="http://www.w3.org/1999/xhtml">
> All Me XHTML Data
> </html>
> </x>
>
>   I'm not saying *SHOULD*, mind you, but could..  :-P
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev





More information about the JDev mailing list