Преглед изворни кода

Started BLFS pdf review.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/new-xsl@8095 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Manuel Canales Esparcia пре 18 година
родитељ
комит
295283a980
3 измењених фајлова са 61 додато и 8 уклоњено
  1. 25 0
      blfs-pdf.xsl
  2. 34 6
      pdf/lfs-index.xsl
  3. 2 2
      pdf/lfs-mixed.xsl

+ 25 - 0
blfs-pdf.xsl

@@ -0,0 +1,25 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<!--
+$LastChangedBy$
+$Date$
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:fo="http://www.w3.org/1999/XSL/Format"
+                version="1.0">
+
+    <!-- LFS top-level chunk templates. -->
+  <xsl:import href="lfs-pdf.xsl"/>
+
+    <!-- The LFS book type to be processed (lfs, blfs, clfs, or hlfs) -->
+  <xsl:param name="book-type">blfs</xsl:param>
+
+    <!-- Are sections enumerated? 1 = yes, 0 = no
+           Note: Activating this will increase a lot rendering time. -->
+  <xsl:param name="section.autolabel" select="0"/>
+
+    <!-- Do section labels include the component label? 1 = yes, 0 = no -->
+  <xsl:param name="section.label.includes.component.label" select="0"/>
+
+</xsl:stylesheet>

+ 34 - 6
pdf/lfs-index.xsl

@@ -80,14 +80,42 @@
                   </xsl:call-template>
                 </xsl:when>
                 <xsl:when test="$divtitle = 'D'">
-                  <xsl:call-template name="gentext">
-                    <xsl:with-param name="key">Scripts</xsl:with-param>
-                  </xsl:call-template>
+                  <xsl:choose>
+                    <xsl:when test="$book-type = 'blfs'">
+                      <xsl:call-template name="gentext">
+                        <xsl:with-param name="key">Kernel Configuration</xsl:with-param>
+                      </xsl:call-template>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:call-template name="gentext">
+                        <xsl:with-param name="key">Scripts</xsl:with-param>
+                      </xsl:call-template>
+                    </xsl:otherwise>
+                  </xsl:choose>
                 </xsl:when>
                 <xsl:when test="$divtitle = 'E'">
-                  <xsl:call-template name="gentext">
-                    <xsl:with-param name="key">Others</xsl:with-param>
-                  </xsl:call-template>
+                  <xsl:choose>
+                    <xsl:when test="$book-type = 'blfs'">
+                      <xsl:call-template name="gentext">
+                        <xsl:with-param name="key">Configuration Files</xsl:with-param>
+                      </xsl:call-template>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:call-template name="gentext">
+                        <xsl:with-param name="key">Others</xsl:with-param>
+                      </xsl:call-template>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:when>
+                <xsl:when test="$divtitle = 'F'">
+                    <xsl:call-template name="gentext">
+                      <xsl:with-param name="key">Bootscripts</xsl:with-param>
+                    </xsl:call-template>
+                </xsl:when>
+                <xsl:when test="$divtitle = 'G'">
+                    <xsl:call-template name="gentext">
+                      <xsl:with-param name="key">Others</xsl:with-param>
+                    </xsl:call-template>
                 </xsl:when>
                 <xsl:otherwise>
                   <xsl:value-of select="$divtitle"/>

+ 2 - 2
pdf/lfs-mixed.xsl

@@ -80,11 +80,11 @@
     </xsl:choose>
   </xsl:template>
 
-    <!-- screen:
+    <!-- screen, literallayout:
           Self-made template that creates a fo:block wrapper with keep-together
           processing instruction support around the output generated by
           original screen templates. -->
-  <xsl:template match="screen">
+  <xsl:template match="screen|literallayout">
     <xsl:variable name="keep.together">
       <xsl:call-template name="dbfo-attribute">
         <xsl:with-param name="pis"