Author: manuel
Date: 2007-03-26 13:34:47 -0600 (Mon, 26 Mar 2007)
New Revision: 7984
Modified:
branches/new-xsl/xhtml/lfs-index.xsl
Log:
Started xhtml/lfs-index.xsl revision.
Modified: branches/new-xsl/xhtml/lfs-index.xsl
===================================================================
--- branches/new-xsl/xhtml/lfs-index.xsl 2007-03-26 18:28:45 UTC (rev
7983)
+++ branches/new-xsl/xhtml/lfs-index.xsl 2007-03-26 19:34:47 UTC (rev
7984)
@@ -10,14 +10,22 @@
xmlns="http://www.w3.org/1999/xhtml"
version="1.0">
- <!--Filename-->
+ <!-- This stylesheet controls how the Index is generated -->
+
+ <!-- Should the Index be generated? 1 = yes, 0 = no -->
+ <xsl:param name="generate.index" select="1"></xsl:param>
+
+ <!-- The indexing method used. Only 'basic' is supported by xsltproc -->
+ <xsl:param name="index.method" select="'basic'"></xsl:param>
+
+ <!--The file name of the Index page -->
<xsl:template match="index" mode="recursive-chunk-filename">
<xsl:text>longindex.html</xsl:text>
</xsl:template>
<!--Title-->
<xsl:param name="index-title">Index</xsl:param>
-
+
<xsl:template match="index" mode="title.markup">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="$index-title"/>
@@ -117,11 +125,11 @@
</xsl:for-each>
<xsl:if test="$refs/secondary">
<ul>
- <xsl:apply-templates select="$refs[secondary and
count(.|key('secondary',
+ <xsl:apply-templates select="$refs[secondary and
count(.|key('secondary',
concat($key, " ",
normalize-space(concat(secondary/@sortas,
secondary[not(@sortas)]))))[&scope;][1]) = 1]"
mode="index-secondary">
<xsl:with-param name="scope" select="$scope"/>
- <xsl:sort
select="translate(normalize-space(concat(secondary/@sortas,
+ <xsl:sort
select="translate(normalize-space(concat(secondary/@sortas,
secondary[not(@sortas)])), &lowercase;, &uppercase;)"/>
</xsl:apply-templates>
</ul>
@@ -195,7 +203,7 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
-
+
<!-- Dropping unneeded anchors -->
<xsl:template match="indexterm"/>
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page