Ignore:
Timestamp:
05/23/2004 07:59:49 PM (20 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
24789da
Parents:
5592479
Message:

Several changes in the CSS code and navigational stuff.

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

File:
1 edited

Legend:

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

    r5592479 r9fd2b20  
    5555                </xsl:call-template>
    5656              </a>
     57              <p>
     58                <xsl:value-of select="$prev/title"/>
     59              </p>
    5760            </li>
    5861          </xsl:if>
     
    7275                </xsl:call-template>
    7376              </a>
    74             </li>
    75           </xsl:if>
    76           <xsl:if test="count($up)&gt;0 and $up != $home">
     77              <p>
     78                <xsl:value-of select="$next/title"/>
     79              </p>
     80            </li>
     81          </xsl:if>
    7782            <li class="up">
    78               <a accesskey="u">
    79                 <xsl:attribute name="href">
    80                   <xsl:call-template name="href.target">
    81                     <xsl:with-param name="object" select="$up"/>
    82                   </xsl:call-template>
    83                 </xsl:attribute>
    84                 <xsl:attribute name="title">
    85                   <xsl:apply-templates select="$up" mode="object.title.markup"/>
    86                 </xsl:attribute>
    87                 <xsl:call-template name="navig.content">
    88                   <xsl:with-param name="direction" select="'up'"/>
    89                 </xsl:call-template>
    90               </a>
    91             </li>
    92           </xsl:if>
     83              <xsl:if test="count($up)&gt;0 and $up != $home">
     84                <a accesskey="u">
     85                  <xsl:attribute name="href">
     86                    <xsl:call-template name="href.target">
     87                      <xsl:with-param name="object" select="$up"/>
     88                    </xsl:call-template>
     89                  </xsl:attribute>
     90                  <xsl:attribute name="title">
     91                    <xsl:apply-templates select="$up" mode="object.title.markup"/>
     92                  </xsl:attribute>
     93                  <xsl:call-template name="navig.content">
     94                    <xsl:with-param name="direction" select="'up'"/>
     95                  </xsl:call-template>
     96                </a>
     97              </xsl:if>
     98              <xsl:text>.</xsl:text>
     99            </li>
    93100          <li class="home">
    94101            <a accesskey="h">
     
    140147                </xsl:call-template>
    141148              </a>
     149              <p>
     150                <xsl:value-of select="$prev/title"/>
     151              </p>
    142152            </li>
    143153          </xsl:if>
     
    157167                </xsl:call-template>
    158168              </a>
    159             </li>
    160           </xsl:if>
    161           <xsl:if test="count($up)&gt;0 and $up != $home">
     169              <p>
     170                <xsl:value-of select="$next/title"/>
     171              </p>
     172            </li>
     173          </xsl:if>
    162174            <li class="up">
    163               <a accesskey="u">
    164                 <xsl:attribute name="href">
    165                   <xsl:call-template name="href.target">
    166                     <xsl:with-param name="object" select="$up"/>
    167                   </xsl:call-template>
    168                 </xsl:attribute>
    169                 <xsl:attribute name="title">
    170                   <xsl:apply-templates select="$up" mode="object.title.markup"/>
    171                 </xsl:attribute>
    172                 <xsl:call-template name="navig.content">
    173                   <xsl:with-param name="direction" select="'up'"/>
    174                 </xsl:call-template>
    175               </a>
    176             </li>
    177           </xsl:if>
    178           <xsl:if  test="$home != .">
     175              <xsl:if test="count($up)&gt;0 and $up != $home">
     176                <a accesskey="u">
     177                  <xsl:attribute name="href">
     178                    <xsl:call-template name="href.target">
     179                      <xsl:with-param name="object" select="$up"/>
     180                    </xsl:call-template>
     181                  </xsl:attribute>
     182                  <xsl:attribute name="title">
     183                    <xsl:apply-templates select="$up" mode="object.title.markup"/>
     184                  </xsl:attribute>
     185                  <xsl:call-template name="navig.content">
     186                    <xsl:with-param name="direction" select="'up'"/>
     187                  </xsl:call-template>
     188                </a>
     189              </xsl:if>
     190              <xsl:text>.</xsl:text>
     191            </li>
    179192            <li class="home">
    180               <a accesskey="h">
    181                 <xsl:attribute name="href">
    182                   <xsl:call-template name="href.target">
    183                     <xsl:with-param name="object" select="$home"/>
    184                   </xsl:call-template>
    185                 </xsl:attribute>
    186                 <xsl:attribute name="title">
    187                   <xsl:value-of select="$home/bookinfo/title"/>
    188                   <xsl:text> - </xsl:text>
    189                   <xsl:value-of select="$home/bookinfo/subtitle"/>
    190                 </xsl:attribute>
    191                 <xsl:call-template name="navig.content">
    192                   <xsl:with-param name="direction" select="'home'"/>
    193                 </xsl:call-template>
    194               </a>
    195             </li>
    196           </xsl:if>
     193              <xsl:if  test="$home != .">
     194                <a accesskey="h">
     195                  <xsl:attribute name="href">
     196                    <xsl:call-template name="href.target">
     197                      <xsl:with-param name="object" select="$home"/>
     198                    </xsl:call-template>
     199                  </xsl:attribute>
     200                  <xsl:attribute name="title">
     201                    <xsl:value-of select="$home/bookinfo/title"/>
     202                    <xsl:text> - </xsl:text>
     203                    <xsl:value-of select="$home/bookinfo/subtitle"/>
     204                  </xsl:attribute>
     205                  <xsl:call-template name="navig.content">
     206                    <xsl:with-param name="direction" select="'home'"/>
     207                  </xsl:call-template>
     208                </a>
     209              </xsl:if>
     210              <xsl:text>.</xsl:text>
     211            </li>
    197212        </ul>
    198213      </div>
Note: See TracChangeset for help on using the changeset viewer.