Ignore:
Timestamp:
05/08/2004 02:02:56 PM (20 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Children:
27d11cd
Parents:
215e6dc
Message:

Changed the output tags for navigational links.
Contributed by Bruce Dubbs.

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

File:
1 edited

Legend:

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

    r215e6dc r8c5aa90  
    4141          </div>
    4242        </xsl:if>
    43         <ul class="headerlinks">
     43        <div class="headerlinks">
    4444          <xsl:if test="count($prev)&gt;0 and $prev != $home">
    45             <li>
     45            <div class='prev'>
    4646              <a accesskey="p">
    4747                <xsl:attribute name="href">
     
    5252                <xsl:text>Prev</xsl:text>
    5353              </a>
    54             </li>
     54            </div>
    5555          </xsl:if>
    56           <li>
     56          <xsl:if test="count($next)&gt;0">
     57            <div class='next'>
     58              <a accesskey="n">
     59                <xsl:attribute name="href">
     60                  <xsl:call-template name="href.target">
     61                    <xsl:with-param name="object" select="$next"/>
     62                  </xsl:call-template>
     63                </xsl:attribute>
     64                <xsl:text>Next</xsl:text>
     65              </a>
     66            </div>
     67          </xsl:if>
     68          <div class='home'>
    5769            <a accesskey="h">
    5870              <xsl:attribute name="href">
     
    6375              <xsl:text>Home</xsl:text>
    6476            </a>
    65           </li>
    66           <xsl:if test="count($next)&gt;0">
    67             <li>
    68               <a accesskey="n">
    69                 <xsl:attribute name="href">
    70                   <xsl:call-template name="href.target">
    71                     <xsl:with-param name="object" select="$next"/>
    72                   </xsl:call-template>
    73                 </xsl:attribute>
    74                 <xsl:text>Next</xsl:text>
    75               </a>
    76             </li>
    77           </xsl:if>
    78         </ul>
     77          </div>
     78        </div>
    7979      </div>
    80       <hr/>
    8180    </xsl:if>
    8281  </xsl:template>
     
    9291            or count($next) &gt; 0 or generate-id($home) != generate-id(.)"/>
    9392    <xsl:if test="$row">
    94       <hr/>
    9593      <div class="navfooter">
    96         <ul>
    9794          <xsl:if test="count($prev)&gt;0 and $prev != $home">
    98             <li>
     95            <div class='prev'>
    9996              <a accesskey="p">
    10097                <xsl:attribute name="href">
     
    104101                </xsl:attribute>
    105102                <xsl:text>Prev</xsl:text>
    106               </a>
     103              </a><br/>
    107104              <xsl:text> </xsl:text>
    108105              <xsl:apply-templates select="$prev" mode="object.title.markup"/>
    109             </li>
     106            </div>
     107          </xsl:if>
     108          <xsl:if test="count($next)&gt;0">
     109            <div class='next'>
     110              <a accesskey="n">
     111                <xsl:attribute name="href">
     112                  <xsl:call-template name="href.target">
     113                    <xsl:with-param name="object" select="$next"/>
     114                  </xsl:call-template>
     115                </xsl:attribute>
     116                <xsl:text>Next</xsl:text>
     117              </a><br/>
     118              <xsl:text> </xsl:text>
     119              <xsl:apply-templates select="$next" mode="object.title.markup"/>
     120            </div>
    110121          </xsl:if>
    111122          <xsl:if test="count($up)&gt;0 and $up != $home">
    112             <li>
     123            <div class='up'>
    113124              <a accesskey="u">
    114125                <xsl:attribute name="href">
     
    118129                </xsl:attribute>
    119130                <xsl:text>Up</xsl:text>
    120               </a>
    121             </li>
     131               </a>
     132               <xsl:if  test="$home != .">
     133                 <div class='home'>
     134                   <a accesskey="h">
     135                     <xsl:attribute name="href">
     136                       <xsl:call-template name="href.target">
     137                         <xsl:with-param name="object" select="$home"/>
     138                       </xsl:call-template>
     139                     </xsl:attribute>
     140                     <xsl:text>Home</xsl:text>
     141                   </a>
     142                 </div>
     143               </xsl:if>
     144            </div>
    122145          </xsl:if>
    123           <xsl:if  test="$home != .">
    124             <li>
    125               <a accesskey="h">
    126                 <xsl:attribute name="href">
    127                   <xsl:call-template name="href.target">
    128                     <xsl:with-param name="object" select="$home"/>
    129                   </xsl:call-template>
    130                 </xsl:attribute>
    131                 <xsl:text>Home</xsl:text>
    132               </a>
    133             </li>
    134           </xsl:if>
    135           <xsl:if test="count($next)&gt;0">
    136             <li>
    137               <a accesskey="n">
    138                 <xsl:attribute name="href">
    139                   <xsl:call-template name="href.target">
    140                     <xsl:with-param name="object" select="$next"/>
    141                   </xsl:call-template>
    142                 </xsl:attribute>
    143                 <xsl:text>Next</xsl:text>
    144               </a>
    145               <xsl:text> </xsl:text>
    146               <xsl:apply-templates select="$next" mode="object.title.markup"/>
    147             </li>
    148           </xsl:if>
    149         </ul>
    150146      </div>
    151147    </xsl:if>
     
    153149
    154150</xsl:stylesheet>
    155 
    156 
Note: See TracChangeset for help on using the changeset viewer.