[JDEV] Rich Text in Messages
Thomas Charron
tcharron at ductape.net
Mon Dec 11 16:06:51 CST 2000
From: "David Waite" <dwaite at jabber.com>
Subject: Re: [JDEV] Rich Text in Messages
> 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 :)
Alrighty, after several hours of reading up on namespaces, I am *SO*
wrong it's not funny. I was under the impression that all child tags, even
those containing an external DTD, where required to be present in the parent
tags DTD as well. I was dead wrong, and it seems to actually be a popular
misconception. Here's a good example that literally shows it:
-- *Included*
<!-- A, B, C, and G are in the http://www.foo.org/ namespace. -->
<A xmlns="http://www.foo.org/">
<B>abcd</B>
<C>efgh</C>
<!-- D, E, and F are in the http://www.bar.org/ namespace. -->
<D xmlns="http://www.bar.org/">
<E>1234</E>
<F>5678</F>
</D>
<!-- Remember! G is in the http://www.foo.org/ namespace. -->
<G>ijkl</G>
</A>
You are correct. The X and query tags SHOULD NOT be present in the
Jabber DTD. They are extention tags.
Please, start bonking me in the head whilst I retreat into my hole to beat
myself with a plunger.. :-)
More information about the JDev
mailing list