diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2006-04-06 17:48:29 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2006-04-06 17:48:29 +0000 |
commit | f6abc2a4e1891e779fb5f74a36163635d91685a4 (patch) | |
tree | b85f5e435d2f99964b4fcd1c4e186ca08a712e39 /stylesheets/pdf/lfs-mixed.xsl | |
parent | 3685bb6f5102f5047d4cb59ad0a1d23bfad7152b (diff) |
Placed home page (when available) and download links for all packages.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7490 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/pdf/lfs-mixed.xsl')
-rw-r--r-- | stylesheets/pdf/lfs-mixed.xsl | 70 |
1 files changed, 40 insertions, 30 deletions
diff --git a/stylesheets/pdf/lfs-mixed.xsl b/stylesheets/pdf/lfs-mixed.xsl index 065128f1b..ac096e5c9 100644 --- a/stylesheets/pdf/lfs-mixed.xsl +++ b/stylesheets/pdf/lfs-mixed.xsl @@ -5,14 +5,15 @@ 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 + <!-- 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. --> + + <!-- Allow forced line breaks inside paragraphs emulating literallayout + and to remove vertical space in pachages and patches pages. --> <xsl:template match="para"> <xsl:choose> <xsl:when test="./@remap='verbatim'"> @@ -25,6 +26,15 @@ <xsl:apply-templates/> </fo:block> </xsl:when> + <xsl:when test="ancestor::variablelist/@role = 'materials'"> + <fo:block> + <xsl:attribute name="space-before.optimum">0.1em</xsl:attribute> + <xsl:attribute name="space-before.minimum">0em</xsl:attribute> + <xsl:attribute name="space-before.maximum">0.2em</xsl:attribute> + <xsl:call-template name="anchor"/> + <xsl:apply-templates/> + </fo:block> + </xsl:when> <xsl:otherwise> <xsl:apply-imports/> </xsl:otherwise> @@ -217,31 +227,31 @@ <!-- Addibg a bullet, and left alignament, for packages and paches list. --> -<xsl:template match="varlistentry" mode="vl.as.blocks"> - <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> - <xsl:choose> - <xsl:when test="ancestor::variablelist/@role = 'materials'"> - <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing" - keep-together.within-column="always" - keep-with-next.within-column="always" text-align="left"> - <xsl:text>• </xsl:text> - <xsl:apply-templates select="term"/> - </fo:block> - <fo:block margin-left="1.4pc" text-align="left"> - <xsl:apply-templates select="listitem"/> - </fo:block> - </xsl:when> - <xsl:otherwise> - <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing" - keep-together.within-column="always" - keep-with-next.within-column="always"> - <xsl:apply-templates select="term"/> - </fo:block> - <fo:block margin-left="0.25in"> - <xsl:apply-templates select="listitem"/> - </fo:block> - </xsl:otherwise> - </xsl:choose> -</xsl:template> + <xsl:template match="varlistentry" mode="vl.as.blocks"> + <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> + <xsl:choose> + <xsl:when test="ancestor::variablelist/@role = 'materials'"> + <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing" + keep-together.within-column="always" + keep-with-next.within-column="always" text-align="left"> + <xsl:text>• </xsl:text> + <xsl:apply-templates select="term"/> + </fo:block> + <fo:block margin-left="1.4pc" text-align="left"> + <xsl:apply-templates select="listitem"/> + </fo:block> + </xsl:when> + <xsl:otherwise> + <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing" + keep-together.within-column="always" + keep-with-next.within-column="always"> + <xsl:apply-templates select="term"/> + </fo:block> + <fo:block margin-left="0.25in"> + <xsl:apply-templates select="listitem"/> + </fo:block> + </xsl:otherwise> + </xsl:choose> + </xsl:template> </xsl:stylesheet> |