You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by cr...@apache.org on 2005/10/04 07:21:44 UTC

svn commit: r293531 - /forrest/trunk/main/webapp/skins/common/xslt/html/document2html.xsl

Author: crossley
Date: Mon Oct  3 22:21:36 2005
New Revision: 293531

URL: http://svn.apache.org/viewcvs?rev=293531&view=rev
Log:
Propoer test for missing or empty table/@class attribute.

Modified:
    forrest/trunk/main/webapp/skins/common/xslt/html/document2html.xsl

Modified: forrest/trunk/main/webapp/skins/common/xslt/html/document2html.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/common/xslt/html/document2html.xsl?rev=293531&r1=293530&r2=293531&view=diff
==============================================================================
--- forrest/trunk/main/webapp/skins/common/xslt/html/document2html.xsl (original)
+++ forrest/trunk/main/webapp/skins/common/xslt/html/document2html.xsl Mon Oct  3 22:21:36 2005
@@ -247,8 +247,8 @@
   <xsl:template match="table">
     <xsl:apply-templates select="@id"/>
     <xsl:choose>
-      <!-- Limit Forrest specific processing  to tables without class -->
-      <xsl:when test="@class = ''">
+      <!-- Limit Forrest specific processing to tables without class -->
+      <xsl:when test="not(@class) or @class=''">
         <table cellpadding="4" cellspacing="1" class="ForrestTable">
           <xsl:copy-of select="@cellspacing | @cellpadding | @border | @class | @bgcolor |@id"/>
           <xsl:apply-templates/>