forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: table tag in document v11
Date Tue, 23 Jul 2002 16:41:10 GMT

Ross Gardler wrote:
> Nicola Ken Barozzi wrote:
> 
>>
>> Bert Van Kets wrote:
>>
>>
>>> Here's a snip of the table template in document2html.xsl
>>>   <xsl:template match="table">
>>>     <table class="table" cellpadding="4" cellspacing="1">
>>>       <xsl:apply-templates/>
>>>     </table>
>>> No background color, no cellpadding or cellspacing alternatives :(
>>
>>
>>
>> Which effectively don't belong there.
>> They are not part of the content.
> 
> 
> I agree. I think that what we are really missing is the class attribute:
> 
>   <xsl:template match="table">
>     <table class="@class">
>       <xsl:apply-templates/>
>     </table>
>   </xsl:template>
> 
> Then colour, padding etc goes in CSS where it belongs.

+1

It's basically what Konstantin has been saying all this time, and I 
think that it's an excellent way of extending the DTD conceptually 
without breaking content-view separation.

What about making that attribute possible on /all/ content tags?

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Mime
View raw message