forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r177948 - /forrest/trunk/main/webapp/skins/common/xslt/fo/document2fo.xsl
Date Mon, 23 May 2005 10:31:33 GMT
Author: rgardler
Date: Mon May 23 03:31:30 2005
New Revision: 177948

URL: http://svn.apache.org/viewcvs?rev=177948&view=rev
Log:
reset background colour for section contents. This allows section types with a particular
class to have a different background setting in custom skins.

Modified:
    forrest/trunk/main/webapp/skins/common/xslt/fo/document2fo.xsl

Modified: forrest/trunk/main/webapp/skins/common/xslt/fo/document2fo.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/common/xslt/fo/document2fo.xsl?rev=177948&r1=177947&r2=177948&view=diff
==============================================================================
--- forrest/trunk/main/webapp/skins/common/xslt/fo/document2fo.xsl (original)
+++ forrest/trunk/main/webapp/skins/common/xslt/fo/document2fo.xsl Mon May 23 03:31:30 2005
@@ -391,6 +391,7 @@
       <xsl:value-of select="14-number($level)"/>
     </xsl:variable>
 
+    <xsl:variable name="background-color" select="//skinconfig/colors/color[@name='body']/@value"/>
     <xsl:variable name="heading-color" select="//skinconfig/colors/color[@name='subheading']/@value"/>
     <xsl:variable name="heading-type" select="//skinconfig/headings/@type"/>
 
@@ -441,9 +442,12 @@
         font-size="{10 div (number($level) +1 )}pt"
         background-color="{$heading-color}">&#160;</fo:block>
     </xsl:if>
-    <xsl:apply-templates>
-      <xsl:with-param name="level" select="number($level)+1"/>
-    </xsl:apply-templates>
+    <fo:block
+        background-color="{$background-color}">
+      <xsl:apply-templates>
+        <xsl:with-param name="level" select="number($level)+1"/>
+      </xsl:apply-templates>
+    </fo:block>
   </xsl:template>
 
   <xsl:template match="title">



Mime
View raw message