[prev in list] [next in list] [prev in thread] [next in thread] 

List:       forrest-svn
Subject:    svn commit: r159386 -
From:       rgardler () apache ! org
Date:       2005-03-29 16:25:59
Message-ID: 20050329162559.76953.qmail () minotaur ! apache ! org
[Download RAW message or body]

Author: rgardler
Date: Tue Mar 29 08:25:58 2005
New Revision: 159386

URL: http://svn.apache.org/viewcvs?view=rev&rev=159386
Log:
rename page class to pageBreakAfter, add pageBreakBefore, this was an undocumented \
feature so we shouldn't need backward compatability: see FOR-402

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?view=diff&r1=159385&r2=159386
 ==============================================================================
--- forrest/trunk/main/webapp/skins/common/xslt/fo/document2fo.xsl (original)
+++ forrest/trunk/main/webapp/skins/common/xslt/fo/document2fo.xsl Tue Mar 29 \
08:25:58 2005 @@ -425,8 +425,12 @@
       <xsl:with-param name="level" select="number($level)+1"/>
     </xsl:apply-templates>
 
-    <!-- if marked as a 'page', and we're breaking on pages, and were not the last \
                node -->
-    <xsl:if test="@class='page' and $page-break-top-sections and \
not(following-sibling::node())"> +    <!-- if marked as a 'pageBreakBefore', and \
we're breaking on pages, and were not the first node --> +    <xsl:if \
test="@class='pageBreakBefore' and $page-break-top-sections and \
preceding-sibling::node()"> +        <fo:block break-before="page"/>
+    </xsl:if>
+    <!-- if marked as a 'pageBreakAfter', and we're breaking on pages, and were not \
the last node --> +    <xsl:if test="@class='pageBreakAfter' and \
$page-break-top-sections and following-sibling::node()">  <fo:block \
break-after="page"/>  </xsl:if>
   </xsl:template>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic