Author: manuel Date: 2007-04-21 16:32:53 -0600 (Sat, 21 Apr 2007) New Revision: 8095
Added: branches/new-xsl/blfs-pdf.xsl Modified: branches/new-xsl/pdf/lfs-index.xsl branches/new-xsl/pdf/lfs-mixed.xsl Log: Started BLFS pdf review. Added: branches/new-xsl/blfs-pdf.xsl =================================================================== --- branches/new-xsl/blfs-pdf.xsl (rev 0) +++ branches/new-xsl/blfs-pdf.xsl 2007-04-21 22:32:53 UTC (rev 8095) @@ -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> Property changes on: branches/new-xsl/blfs-pdf.xsl ___________________________________________________________________ Name: svn:keywords + Author Date Revision Id Modified: branches/new-xsl/pdf/lfs-index.xsl =================================================================== --- branches/new-xsl/pdf/lfs-index.xsl 2007-04-21 19:13:24 UTC (rev 8094) +++ branches/new-xsl/pdf/lfs-index.xsl 2007-04-21 22:32:53 UTC (rev 8095) @@ -80,15 +80,43 @@ </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"/> </xsl:otherwise> Modified: branches/new-xsl/pdf/lfs-mixed.xsl =================================================================== --- branches/new-xsl/pdf/lfs-mixed.xsl 2007-04-21 19:13:24 UTC (rev 8094) +++ branches/new-xsl/pdf/lfs-mixed.xsl 2007-04-21 22:32:53 UTC (rev 8095) @@ -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" -- http://linuxfromscratch.org/mailman/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
