Ignore:
Timestamp:
01/19/2005 06:12:21 PM (20 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Children:
5156910b
Parents:
0c81bec
Message:

Updated the LFS-RNG stylesheets.
Only chunked XHTML output can be rendered by now,
but with some bugs in the look.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4542 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/xhtml/lfs-navigational.xsl

    r0c81bec ra9fde34e  
    6969                </xsl:attribute>
    7070                <xsl:attribute name="title">
    71                   <xsl:value-of select="$next/title"/>
     71                  <xsl:choose>
     72                    <xsl:when test="local-name($next)='index'">
     73                      <xsl:call-template name="gentext">
     74                        <xsl:with-param name="key">Index</xsl:with-param>
     75                      </xsl:call-template>
     76                    </xsl:when>
     77                    <xsl:otherwise>
     78                      <xsl:value-of select="$next/title"/>
     79                    </xsl:otherwise>
     80                  </xsl:choose>
    7281                </xsl:attribute>
    7382                <xsl:call-template name="navig.content">
     
    7685              </a>
    7786              <p>
    78                 <xsl:value-of select="$next/title"/>
     87                <xsl:choose>
     88                  <xsl:when test="local-name($next)='index'">
     89                    <xsl:call-template name="gentext">
     90                      <xsl:with-param name="key">Index</xsl:with-param>
     91                    </xsl:call-template>
     92                  </xsl:when>
     93                  <xsl:otherwise>
     94                    <xsl:value-of select="$next/title"/>
     95                  </xsl:otherwise>
     96                </xsl:choose>
    7997              </p>
    8098            </li>
     
    161179                </xsl:attribute>
    162180                <xsl:attribute name="title">
    163                   <xsl:value-of select="$next/title"/>
     181                  <xsl:choose>
     182                    <xsl:when test="local-name($next)='index'">
     183                      <xsl:call-template name="gentext">
     184                        <xsl:with-param name="key">Index</xsl:with-param>
     185                      </xsl:call-template>
     186                    </xsl:when>
     187                    <xsl:otherwise>
     188                      <xsl:value-of select="$next/title"/>
     189                    </xsl:otherwise>
     190                  </xsl:choose>
    164191                </xsl:attribute>
    165192                <xsl:call-template name="navig.content">
     
    168195              </a>
    169196              <p>
    170                 <xsl:value-of select="$next/title"/>
     197                <xsl:choose>
     198                  <xsl:when test="local-name($next)='index'">
     199                    <xsl:call-template name="gentext">
     200                      <xsl:with-param name="key">Index</xsl:with-param>
     201                    </xsl:call-template>
     202                  </xsl:when>
     203                  <xsl:otherwise>
     204                    <xsl:value-of select="$next/title"/>
     205                  </xsl:otherwise>
     206                </xsl:choose>
    171207              </p>
    172208            </li>
Note: See TracChangeset for help on using the changeset viewer.