Author: manuel
Date: 2007-04-03 14:42:46 -0600 (Tue, 03 Apr 2007)
New Revision: 8012

Modified:
   branches/new-xsl/lfs-pdf.xsl
   branches/new-xsl/pdf/lfs-mixed.xsl
Log:
Updated page break support.

Modified: branches/new-xsl/lfs-pdf.xsl
===================================================================
--- branches/new-xsl/lfs-pdf.xsl        2007-04-03 20:14:54 UTC (rev 8011)
+++ branches/new-xsl/lfs-pdf.xsl        2007-04-03 20:42:46 UTC (rev 8012)
@@ -72,4 +72,15 @@
          Set to 0 tp prevent duplicate e-mails in the Acknowledgments pages -->
   <xsl:param name="ulink.show" select="0"/>
 
+    <!-- Processing instruction for hard page breaks.
+         FOP-0.93 supports now @keep-together.* attributes, that solves
+         some page break issues. It also supports the soft page breack
+         procesing instruction included in the DocBook stylesheets.
+         But some times we may need hard page breaks. -->
+    <!-- To know how to use all that page break features, see
+         http://www.sagehill.net/docbookxsl/PageBreaking.html -->
+  <xsl:template match="processing-instruction('hard-pagebreak')">
+    <fo:block break-before='page'/>
+  </xsl:template>
+
 </xsl:stylesheet>

Modified: branches/new-xsl/pdf/lfs-mixed.xsl
===================================================================
--- branches/new-xsl/pdf/lfs-mixed.xsl  2007-04-03 20:14:54 UTC (rev 8011)
+++ branches/new-xsl/pdf/lfs-mixed.xsl  2007-04-03 20:42:46 UTC (rev 8012)
@@ -5,13 +5,6 @@
                 version="1.0">
 
 
-    <!-- This is a hack and isn't correct semantically. Theoretically, the 
beginpage
-      tags should be placed in the XML source only to render the PDF output and
-      should be removed after it. But there is no a better way and we need 
this.-->
-  <xsl:template match="beginpage">
-    <fo:block break-after="page"/>
-  </xsl:template>
-
     <!-- Allow forced line breaks inside paragraphs emulating literallayout
     and to remove vertical space in pachages and patches pages. -->
  <xsl:template match="para">

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to