فهرست منبع

Updated page break support.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/new-xsl@8012 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Manuel Canales Esparcia 18 سال پیش
والد
کامیت
4edb5e6974
2فایلهای تغییر یافته به همراه11 افزوده شده و 7 حذف شده
  1. 11 0
      lfs-pdf.xsl
  2. 0 7
      pdf/lfs-mixed.xsl

+ 11 - 0
lfs-pdf.xsl

@@ -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>

+ 0 - 7
pdf/lfs-mixed.xsl

@@ -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">