r4151 - branches/testing/BOOK/stylesheets/xhtml

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Fri Sep 10 10:09:44 PDT 2004


Author: manuel
Date: 2004-09-10 11:09:42 -0600 (Fri, 10 Sep 2004)
New Revision: 4151

Modified:
   branches/testing/BOOK/stylesheets/xhtml/lfs-navigational.xsl
Log:
Fixed a small issue about the Index and navigational links for HTML output.

Modified: branches/testing/BOOK/stylesheets/xhtml/lfs-navigational.xsl
===================================================================
--- branches/testing/BOOK/stylesheets/xhtml/lfs-navigational.xsl	2004-09-10 13:02:16 UTC (rev 4150)
+++ branches/testing/BOOK/stylesheets/xhtml/lfs-navigational.xsl	2004-09-10 17:09:42 UTC (rev 4151)
@@ -68,14 +68,28 @@
                   </xsl:call-template>
                 </xsl:attribute>
                 <xsl:attribute name="title">
-                  <xsl:value-of select="$next/title"/>
+                  <xsl:choose>
+                    <xsl:when test="local-name($next)='index'">
+                      <xsl:text>Index</xsl:text>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$next/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
                 </xsl:attribute>
                 <xsl:call-template name="navig.content">
                   <xsl:with-param name="direction" select="'next'"/>
                 </xsl:call-template>
               </a>
               <p>
-                <xsl:value-of select="$next/title"/>
+                <xsl:choose>
+                  <xsl:when test="local-name($next)='index'">
+                    <xsl:text>Index</xsl:text>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <xsl:value-of select="$next/title"/>
+                  </xsl:otherwise>
+                </xsl:choose>
               </p>
             </li>
           </xsl:if>
@@ -160,14 +174,28 @@
                   </xsl:call-template>
                 </xsl:attribute>
                 <xsl:attribute name="title">
-                  <xsl:value-of select="$next/title"/>
+                  <xsl:choose>
+                    <xsl:when test="local-name($next)='index'">
+                      <xsl:text>Index</xsl:text>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$next/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
                 </xsl:attribute>
                 <xsl:call-template name="navig.content">
                   <xsl:with-param name="direction" select="'next'"/>
                 </xsl:call-template>
               </a>
               <p>
-                <xsl:value-of select="$next/title"/>
+                <xsl:choose>
+                  <xsl:when test="local-name($next)='index'">
+                    <xsl:text>Index</xsl:text>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <xsl:value-of select="$next/title"/>
+                  </xsl:otherwise>
+                </xsl:choose>
               </p>
             </li>
           </xsl:if>




More information about the lfs-book mailing list