atom feed36 messages in org.oasis-open.lists.docbookRe: Fw: DOCBOOK: programlisting
FromSent OnAttachments
Gert Bultman (Xi)Aug 14, 2002 3:03 am 
Yann DirsonAug 14, 2002 3:13 am 
Gert Bultman (Xi)Aug 14, 2002 4:14 am 
Ramon CasellasAug 14, 2002 5:54 am 
Dave PawsonAug 14, 2002 10:19 am 
Bob StaytonAug 14, 2002 7:17 pm 
Dave PawsonAug 14, 2002 10:08 pm 
John R. DailyAug 14, 2002 10:36 pm 
Bob StaytonAug 15, 2002 12:17 am 
Dave PawsonAug 15, 2002 11:47 am 
Bob StaytonAug 15, 2002 1:41 pm 
John R. DailyAug 15, 2002 1:52 pm 
Dave PawsonAug 15, 2002 10:31 pm 
John R. DailyAug 15, 2002 11:04 pm 
John R. DailyAug 15, 2002 11:23 pm 
peter riegerspergerAug 15, 2002 11:27 pm 
ed nixonAug 16, 2002 5:24 am 
John R. DailyAug 16, 2002 7:07 am 
David CramerAug 16, 2002 7:39 am 
ed nixonAug 16, 2002 7:40 am 
John R. DailyAug 16, 2002 8:30 am 
Dave PawsonAug 16, 2002 10:46 am 
Dave PawsonAug 16, 2002 10:55 am 
John R. DailyAug 16, 2002 10:59 am 
John R. DailyAug 16, 2002 11:23 am 
Norman WalshAug 16, 2002 12:01 pm 
ed nixonAug 16, 2002 12:09 pm 
John R. DailyAug 16, 2002 12:32 pm 
Bob StaytonAug 16, 2002 12:39 pm 
Dave PawsonAug 16, 2002 12:58 pm 
Dave PawsonAug 16, 2002 1:01 pm 
Paul GrossoAug 17, 2002 1:01 am 
Jens StavnstrupAug 18, 2002 11:49 pm 
Dave PawsonAug 19, 2002 9:58 am 
Norman WalshAug 20, 2002 6:32 am 
Dave PawsonAug 20, 2002 10:36 am 
Subject:Re: Fw: DOCBOOK: programlisting
From:Bob Stayton (bo@caldera.com)
Date:Aug 15, 2002 12:17:17 am
List:org.oasis-open.lists.docbook

On Thu, Aug 15, 2002 at 06:06:33AM -0700, Dave Pawson wrote:

At 19:17 14/08/2002, Bob Stayton wrote:

If the 'pass through' of role, to 'class' in the html were available via the stylesheets, that would be easy... wouldn't it?

Yes, it would be easy to pass it through. But the class attribute is already occupied by the element name, such as <div class="programlisting">. Are you suggesting that if there is a role value, that it should just replace the element name?

I have suggested it before, for just this purpose, but hadn't realised (no, hadn't connected my 'other' use of it as you say).

How much of a chore would it be to have it parameterised?

class.usage='passthrough' or class.usage='elementName'

Would that make sense? Then Geert and I could colour our program listings or define our stylesheets based on element names, but not both... which would break the rest of our css stylesheets :-) Mmmm. Now I see the problem.

My only other suggestion would be for me to learn more about CSS I suppose. Isn't it possible to specify the hierarchy (selectors in css2) such that its possible to identify the two uses and hence style them differently?

I notice that the HTML 4.0 spec says the class attribute can be a space-separated list of names. That sounds like you could have both element name and role value as class values in a div class attribute. But how do you write CSS to deal with that, and do the browsers support such syntax?