aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/xhtml/lfs-index.xsl
diff options
context:
space:
mode:
authorManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-05-08 14:19:53 +0000
committerManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-05-08 14:19:53 +0000
commitded6dddb89cade026e592cd386790b5b10e6fe00 (patch)
tree3e628a075a59b9ee298376729b44a4151d039c59 /stylesheets/xhtml/lfs-index.xsl
parente4bf4c7e72fabd039b21b78313d43ce2138c1e7d (diff)
Updated the stylesheets to their current version.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3529 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/xhtml/lfs-index.xsl')
-rw-r--r--stylesheets/xhtml/lfs-index.xsl21
1 files changed, 16 insertions, 5 deletions
diff --git a/stylesheets/xhtml/lfs-index.xsl b/stylesheets/xhtml/lfs-index.xsl
index 2405e5586..825378702 100644
--- a/stylesheets/xhtml/lfs-index.xsl
+++ b/stylesheets/xhtml/lfs-index.xsl
@@ -6,24 +6,31 @@
<!ENTITY scope 'count(ancestor::node()|$scope) = count(ancestor::node())'>
]>
-<!-- Version 0.8.0 - Manuel Canales Esparcia <macana@lfs-es.org> -->
+<!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml"
version="1.0">
- <!--Index Stuff-->
-
<!--Filename-->
<xsl:template match="index" mode="recursive-chunk-filename">
<xsl:text>longindex.html</xsl:text>
</xsl:template>
<!--Title-->
+ <xsl:param name="index-title">Index of packages and important installed files</xsl:param>
+
<xsl:template match="index" mode="title.markup">
- <xsl:param name="allow-anchors" select="0"/>
- <xsl:text>Index of packages and important installed files</xsl:text>
+ <xsl:value-of select="$index-title"/>
</xsl:template>
+
+ <xsl:template name="index.titlepage">
+ <div class="titlepage">
+ <h1 class="index">
+ <xsl:value-of select="$index-title"/>
+ </h1>
+ </div>
+ </xsl:template>
<!--Divisions-->
<xsl:template match="indexterm" mode="index-div">
@@ -109,6 +116,7 @@
</xsl:if>
</li>
</xsl:template>
+
<xsl:template match="indexterm" mode="index-secondary">
<xsl:param name="scope" select="."/>
<xsl:variable name="key" select="concat(&primary;, &#34; &#34;,
@@ -173,5 +181,8 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
+
+ <!-- Dropping unneeded anchors -->
+ <xsl:template match="indexterm"/>
</xsl:stylesheet>