This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: <*list> In or After <para>?
- To: David Cramer <david_cramer at broadjump dot com>
- Subject: Re: DOCBOOK: <*list> In or After <para>?
- From: Jorge Godoy <godoy at conectiva dot com>
- Date: Tue, 14 Aug 2001 19:59:37 -0300
- Cc: docbook at lists dot oasis-open dot org
- List-Id: <docbook.lists.oasis-open.org>
- References: <AA7C274B76E19E4A89883C73B97E08760DFA82@mailbag.inhouse.broadjump.com>
"David Cramer" <david_cramer@broadjump.com> writes:
> Actually, I do just that--close the para before the list, but I don't
> like it for the reason mentioned previously in this thread: the list
> often really is part of the para.
I know. :-)
I think the same way you and Norman do... But unfortunately, as he
said, it doesn't always generate valid HTML.
When I'm not concerned with HTML, I put the list in the context it
belongs to.
> I guess I was trying to say that I don't understand why the stylesheets
> give you this:
>
> <p>Text. Text. Text.
> <ol>
> <li>...</li>
> <li>...</li>
> </ol>
> </p>
Think of them as something that's semi-intelligent. ;-) They aren't
smart enough to change context here. And, I think, it would require a
lot of work to make them look at the following elements everytime you
have a para --- or the previous element every time you have some kind
of list. And, think that these aren't the only kind of blocks that can
be mixed... It would become a nightmare.
> I make the spacing before the list whatever I want with css:
>
> P, OL
> {
> margin-top: 0.1in;
>}
>
> Never mind :)
:-))
I always do the HTML stuff associated with CSS... This way, I only
have to be sure that the stylesheets generate valid HTML and put the
correct classes / IDs / whatever in the output. :-)
Maintenance becomes easier this way.
--
Godoy. <godoy@conectiva.com>
Solutions Developer - Conectiva Inc. - http://www.conectiva.com
Desenvolvedor de Soluções - Conectiva S.A. - http://www.conectiva.com.br
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>