forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin <forr...@kegcl.demon.co.uk>
Subject Re: Cleaning up html-processing
Date Tue, 04 Oct 2005 20:17:32 GMT
On Tue, 2005-10-04 at 17:24 +0100, Ross Gardler wrote:
> Ferdinand Soethe wrote:
> 
> > Even though class is empty and
> > 
> > "<xsl:value-of select="@class"/>" will show ""
> > 
> > the test condition
> > 
> > <xsl:when test="@class = ''">
> > 
> > does not seem to work properly so all tables are now
> > treated like in the otherwise branch.
> 
> See Davids commit: 
> http://svn.apache.org/viewcvs.cgi/forrest/trunk/main/webapp/skins/common/xslt/html/document2html.xsl?rev=293531&r1=292938&r2=293531&diff_format=h
> 
> Ross

I was suggesting undoing the change and going back to r232890,
thought it did the job correctly? Am I missing something? I've
added comments to template below.

document2html.xsl:

  <xsl:template match="table">
    <xsl:apply-templates select="@id"/>

<!-- default cellpadding and cellspacing and class -->
    <table cellpadding="4" cellspacing="1" class="ForrestTable">

<!-- if cellpadding or cellspacing or class overwrite defaults  -->
      <xsl:copy-of select="@cellspacing | @cellpadding | @border |
@class | @bgcolor"/>

      <xsl:apply-templates/>
    </table>
  </xsl:template

Kevin





Mime
View raw message