Re: Gtk-Xmhtml and lists
- From: "Koen D'Hondt" <ripley xs4all nl>
- To: Mark Galassi <rosalia cygnus com>, ripley xs4all nl, badger prtr-13 ucsc edu, gnome-list gnome org
- Subject: Re: Gtk-Xmhtml and lists
- Date: Mon, 11 May 1998 15:14:53 +0100
I wrote:
> > > <dt>
> > > <dl> ... </dl>
> > > <dt>
> > > <dl> ... </dl>
> > > </dt>
> > > </dt>
> > I have to have a look at this. If the toc you're talking about is as you
> > typed above I need to check a few things. I'll get back to you on this.
> Okay, I know what's wrong: I'm being too strict. I'm only allowing
> nested <dl> lists when they occur inside a <dd> while they should also
> be allowed inside a <dt>. And this is a violation of HTML3.2
>
> I guess I never noticed it myself 'cause I always nest my lists inside
> the <dd> tag and not in the <dt> tag (which is semantically a bit more
> correct since <dt> is for a definition term, while <dd> is for the
> definition description). I'll fix it.
I should have read HTML3.2 a bit more carefully before making this
remark. It turns out that XmHTML *is* correct after all. From the DTD:
<!ELEMENT DT - O (%text)*>
<!ELEMENT DD - O %flow;>
Which, in common language, means: <dt> may *only* hold text elements,
while <dd> can hold block elements as well. This is also true for the
Cougar (HTML4.0) DTD. So the example Mark gave above is still a
violation and thus the output from DocBook should be considered broken.
However, I will modify XmHTML so this bad behavior will be allowed when
XmHTML is not running in strict mode.
Cheers,
Koen.
--
XmHTML author and maintainer
ripley@xs4all.nl http://www.xs4all.nl/~ripley
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]