[JDEV] Jabber DTD ...
julian at jabber.org
Sun Jun 3 14:09:32 CDT 2001
There's no decent way to convey the idea that an element should either
appear once or not at all *and* be in any order with the other elements.
This is the closest you can get in DTDs.
You might as well ignore the DTDs, though, I recently found out that
we've been doing them completely wrong with regard to namespaces and
that we really can't describe the stuff we're doing with namespaces in a
decent way with DTDs. We'll switch to Schemas soon.
On 03 Jun 2001 13:00:25 +0200, Max Horn wrote:
> At 4:43 Uhr -0700 03.06.2001, Scott Cote wrote:
> >Hello. I'm new to the Jabber dev list. I'm enjoying getting my feet wet
> >in the Jabber universe. To that end, I have a question regarding some
> >entries in the protocol DTD files.
> >I've see elements that are formed similar to the following:
> ><!ELEMENT foo (( a? | b? | c?)*)>
> >What is the difference between that and the following?
> ><!ELEMENT foo (( a | b | c)*)>
> I think there is no difference at all, only somebody liked it a bit
> more complicated ;) But both regular expression yield the same.
> Just my believe of course, i await being proved wrong ;)
> Max Horn
> C++/ObjC/Java Developer
> email: <mailto:max at quendi.de>
> phone: (+49) 6151-494890
> jdev mailing list
> jdev at jabber.org
email: julian at jabber.org
jabber:julian at jabber.org
More information about the JDev