Updates to stylesheeds from Manuel

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3415 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Bruce Dubbs 2005-02-06 22:47:42 +00:00
parent dcd4bfb76e
commit e7ce829203
3 changed files with 30 additions and 14 deletions

View File

@ -6,8 +6,6 @@
<!ENTITY scope 'count(ancestor::node()|$scope) = count(ancestor::node())'> <!ENTITY scope 'count(ancestor::node()|$scope) = count(ancestor::node())'>
]> ]>
<!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"
version="1.0"> version="1.0">
@ -21,13 +19,17 @@
<xsl:param name="index-title">Index</xsl:param> <xsl:param name="index-title">Index</xsl:param>
<xsl:template match="index" mode="title.markup"> <xsl:template match="index" mode="title.markup">
<xsl:value-of select="$index-title"/> <xsl:call-template name="gentext">
<xsl:with-param name="key" select="$index-title"/>
</xsl:call-template>
</xsl:template> </xsl:template>
<xsl:template name="index.titlepage"> <xsl:template name="index.titlepage">
<div class="titlepage"> <div class="titlepage">
<h1 class="index"> <h1 class="index">
<xsl:value-of select="$index-title"/> <xsl:call-template name="gentext">
<xsl:with-param name="key" select="$index-title"/>
</xsl:call-template>
</h1> </h1>
</div> </div>
</xsl:template> </xsl:template>
@ -44,25 +46,39 @@
<h2> <h2>
<xsl:choose> <xsl:choose>
<xsl:when test="$divtitle = 'A'"> <xsl:when test="$divtitle = 'A'">
<xsl:text>Packages</xsl:text> <xsl:call-template name="gentext">
<xsl:with-param name="key">Packages</xsl:with-param>
</xsl:call-template>
</xsl:when> </xsl:when>
<xsl:when test="$divtitle = 'B'"> <xsl:when test="$divtitle = 'B'">
<xsl:text>Programs</xsl:text> <xsl:call-template name="gentext">
<xsl:with-param name="key">Programs</xsl:with-param>
</xsl:call-template>
</xsl:when> </xsl:when>
<xsl:when test="$divtitle = 'C'"> <xsl:when test="$divtitle = 'C'">
<xsl:text>Libraries</xsl:text> <xsl:call-template name="gentext">
<xsl:with-param name="key">Libraries</xsl:with-param>
</xsl:call-template>
</xsl:when> </xsl:when>
<xsl:when test="$divtitle = 'D'"> <xsl:when test="$divtitle = 'D'">
<xsl:text>Kernel Configuration</xsl:text> <xsl:call-template name="gentext">
<xsl:with-param name="key">Kernel Configuration</xsl:with-param>
</xsl:call-template>
</xsl:when> </xsl:when>
<xsl:when test="$divtitle = 'E'"> <xsl:when test="$divtitle = 'E'">
<xsl:text>Configuration Files</xsl:text> <xsl:call-template name="gentext">
<xsl:with-param name="key">Configuration Files</xsl:with-param>
</xsl:call-template>
</xsl:when> </xsl:when>
<xsl:when test="$divtitle = 'F'"> <xsl:when test="$divtitle = 'F'">
<xsl:text>Bootscripts</xsl:text> <xsl:call-template name="gentext">
<xsl:with-param name="key">Bootscripts</xsl:with-param>
</xsl:call-template>
</xsl:when> </xsl:when>
<xsl:when test="$divtitle = 'G'"> <xsl:when test="$divtitle = 'G'">
<xsl:text>Others</xsl:text> <xsl:call-template name="gentext">
<xsl:with-param name="key">Others</xsl:with-param>
</xsl:call-template>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$divtitle"/> <xsl:value-of select="$divtitle"/>
@ -170,7 +186,9 @@
<xsl:with-param name="object" select="$target2[1]"/> <xsl:with-param name="object" select="$target2[1]"/>
</xsl:call-template> </xsl:call-template>
</xsl:attribute> </xsl:attribute>
<xsl:text>description </xsl:text> <xsl:call-template name="gentext">
<xsl:with-param name="key">description</xsl:with-param>
</xsl:call-template>
</a><br /> </a><br />
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>

View File

@ -1,7 +1,5 @@
<?xml version='1.0' encoding='ISO-8859-1'?> <?xml version='1.0' encoding='ISO-8859-1'?>
<!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"
version="1.0"> version="1.0">