forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r159386 - forrest/trunk/main/webapp/skins/common/xslt/fo/document2fo.xsl
Date Tue, 29 Mar 2005 16:25:59 GMT
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>



Mime
View raw message