forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piroumian Konstantin <KPiroum...@protek.com>
Subject RE: table tag in document v11
Date Wed, 24 Jul 2002 08:08:31 GMT
> From: Steven Noels [mailto:stevenn@outerthought.org] 
> Piroumian Konstantin wrote:
> >>From: Ross Gardler [mailto:ross@wkwyw.net] 
> >>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. The 'class' attribute is needed on every [visual] element. 
> > Another option to control the presentation of a specific 
> element is to use
> > 'id' attribute and define a #myclass CSS style using the 
> 'id' as the name.
> 
> Being a lazy person, I was thinking of adding it to all elements :-)
> 
> Or let me quickly run through 
> http://www.krysalis.org/forrest/document-v11.dtdx.html and see what 
> "visual" (=XHTML?) elements we have in there:
> 
>   - br

Never though that <br/> can have a 'class' attribute ;)

>   - code
>   - dd
>   - dl
>   - dt
>   - em
>   - img
>   - li
>   - ol
>   - p
>   - strong
>   - sub
>   - sup
>   - table
>   - td
>   - th
>   - tr
>   - ul
> 
> Is this the full list? I'll patch those adding a class 
> attribute, then.

What about the 'link' element? Can we imply that links should be formatted
in a uniform way?

Konstantin

> 
> > This again raises the question 'how a user can specify 
> custom CSS file to be
> > used'.
> 
> Should be made part of a custom skin, IMO.
> 
> </Steven>
> -- 
> Steven Noels                            http://outerthought.org/
> Outerthought - Open Source, Java & XML Competence Support Center
> stevenn@outerthought.org                      stevenn@apache.org
> 

Mime
View raw message