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