cvs commit: LFS/BOOK/stylesheets/xhtml lfs-legalnotice.xsl lfs-navigational.xsl

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sat May 8 14:36:43 PDT 2004


manuel      04/05/08 15:36:43

  Modified:    BOOK/stylesheets Tag: b6_0 lfs.css
               BOOK/stylesheets/xhtml Tag: b6_0 lfs-legalnotice.xsl
                        lfs-navigational.xsl
  Log:
  Navigational links: back again to use <ul>
  and made a proper css code.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.4.3   +2 -7      LFS/BOOK/stylesheets/lfs.css
  
  Index: lfs.css
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/stylesheets/lfs.css,v
  retrieving revision 1.1.4.2
  retrieving revision 1.1.4.3
  diff -u -r1.1.4.2 -r1.1.4.3
  --- lfs.css	8 May 2004 18:25:57 -0000	1.1.4.2
  +++ lfs.css	8 May 2004 21:36:42 -0000	1.1.4.3
  @@ -5,7 +5,7 @@
     text-align: left;
   }
   
  -.toc ul, .index ul {
  +.toc ul, .index ul,.navheader ul, .navfooter ul {
   	list-style: none;
   }
   
  @@ -28,21 +28,16 @@
   .prev {
      float     : left;
      text-align: left;
  -   /* border    : solid 1px #ddd; */
  -   padding-left: 2em;
   }
   
   .next {
      float     : right;
      text-align: right;
  -   /* border    : solid 1px #0dd; */
      padding-right: 2em;
   }
   
  -.up {
  -   /* border : solid 1px #ff0; */
  +.up, .home {
      width  : 10em;
  -   /* background-color: #bbb; */
      margin: 0px auto;
   }
   
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.4.3   +3 -2      LFS/BOOK/stylesheets/xhtml/lfs-legalnotice.xsl
  
  Index: lfs-legalnotice.xsl
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/stylesheets/xhtml/lfs-legalnotice.xsl,v
  retrieving revision 1.1.4.2
  retrieving revision 1.1.4.3
  diff -u -r1.1.4.2 -r1.1.4.3
  --- lfs-legalnotice.xsl	8 May 2004 19:27:01 -0000	1.1.4.2
  +++ lfs-legalnotice.xsl	8 May 2004 21:36:43 -0000	1.1.4.3
  @@ -1,5 +1,7 @@
   <?xml version='1.0' encoding='ISO-8859-1'?>
   
  +<!-- Version 0.9 - Manuel Canales Esparcia <macana at lfs-es.org> -->
  +
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                   xmlns="http://www.w3.org/1999/xhtml"
                   version="1.0">
  @@ -26,10 +28,9 @@
               <div class="{local-name(.)}">
                 <xsl:apply-templates mode="titlepage.mode"/>
               </div>
  -            <hr/>
               <div class="navfooter">
                 <ul class="footerlinks">
  -                <li>
  +                <li class="home">
                     <a accesskey="h">
                       <xsl:attribute name="href">
                         <xsl:text>../index.html</xsl:text>
  
  
  
  1.1.4.3   +42 -34    LFS/BOOK/stylesheets/xhtml/lfs-navigational.xsl
  
  Index: lfs-navigational.xsl
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/stylesheets/xhtml/lfs-navigational.xsl,v
  retrieving revision 1.1.4.2
  retrieving revision 1.1.4.3
  diff -u -r1.1.4.2 -r1.1.4.3
  --- lfs-navigational.xsl	8 May 2004 19:27:01 -0000	1.1.4.2
  +++ lfs-navigational.xsl	8 May 2004 21:36:43 -0000	1.1.4.3
  @@ -1,5 +1,7 @@
   <?xml version='1.0' encoding='ISO-8859-1'?>
   
  +<!-- Version 0.9 - Manuel Canales Esparcia <macana at lfs-es.org> -->
  +
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                   xmlns="http://www.w3.org/1999/xhtml"
                   version="1.0">
  @@ -38,9 +40,9 @@
               </xsl:if>
             </div>
           </xsl:if>
  -        <div class="headerlinks">
  +        <ul class="headerlinks">
             <xsl:if test="count($prev)>0 and $prev != $home">
  -            <div class='prev'>
  +            <li class="prev">
                 <a accesskey="p">
                   <xsl:attribute name="href">
                     <xsl:call-template name="href.target">
  @@ -49,10 +51,10 @@
                   </xsl:attribute>
                   <xsl:text>Prev</xsl:text>
                 </a>
  -            </div>
  +            </li>
             </xsl:if>
             <xsl:if test="count($next)>0">
  -            <div class='next'>
  +            <li class="next">
                 <a accesskey="n">
                   <xsl:attribute name="href">
                     <xsl:call-template name="href.target">
  @@ -61,9 +63,8 @@
                   </xsl:attribute>
                   <xsl:text>Next</xsl:text>
                 </a>
  -            </div>
  -          </xsl:if>
  -          <div class='home'>
  +            </li>
  +          <li class="home">
               <a accesskey="h">
                 <xsl:attribute name="href">
                   <xsl:call-template name="href.target">
  @@ -72,8 +73,9 @@
                 </xsl:attribute>
                 <xsl:text>Home</xsl:text>
               </a>
  -          </div>
  -        </div>
  +          </li>
  +          </xsl:if>
  +        </ul>
         </div>
       </xsl:if>
     </xsl:template>
  @@ -89,8 +91,9 @@
               or count($next) > 0 or generate-id($home) != generate-id(.)"/>
       <xsl:if test="$row">
         <div class="navfooter">
  +        <ul>
             <xsl:if test="count($prev)>0 and $prev != $home">
  -            <div class='prev'>
  +            <li class="prev">
                 <a accesskey="p">
                   <xsl:attribute name="href">
                     <xsl:call-template name="href.target">
  @@ -98,13 +101,14 @@
                     </xsl:call-template>
                   </xsl:attribute>
                   <xsl:text>Prev</xsl:text>
  -              </a><br/>
  -              <xsl:text> </xsl:text>
  -              <xsl:apply-templates select="$prev" mode="object.title.markup"/>
  -            </div>
  +              </a>
  +              <p>
  +              	<xsl:apply-templates select="$prev" mode="object.title.markup"/>
  +              </p>
  +            </li>
             </xsl:if>
             <xsl:if test="count($next)>0">
  -            <div class='next'>
  +            <li class="next">
                 <a accesskey="n">
                   <xsl:attribute name="href">
                     <xsl:call-template name="href.target">
  @@ -112,13 +116,14 @@
                     </xsl:call-template>
                   </xsl:attribute>
                   <xsl:text>Next</xsl:text>
  -              </a><br/>
  -              <xsl:text> </xsl:text>
  -              <xsl:apply-templates select="$next" mode="object.title.markup"/>
  -            </div>
  +              </a>
  +              <p>
  +              	<xsl:apply-templates select="$next" mode="object.title.markup"/>
  +              </p>
  +            </li>
             </xsl:if>
             <xsl:if test="count($up)>0 and $up != $home">
  -            <div class='up'>
  +            <li class="up">
                 <a accesskey="u">
                   <xsl:attribute name="href">
                     <xsl:call-template name="href.target">
  @@ -126,23 +131,26 @@
                     </xsl:call-template>
                   </xsl:attribute>
                   <xsl:text>Up</xsl:text>
  -               </a>
  -               <xsl:if  test="$home != .">
  -                 <div class='home'>
  -                   <a accesskey="h">
  -                     <xsl:attribute name="href">
  -                       <xsl:call-template name="href.target">
  -                         <xsl:with-param name="object" select="$home"/>
  -                       </xsl:call-template>
  -                     </xsl:attribute>
  -                     <xsl:text>Home</xsl:text>
  -                   </a>
  -                 </div>
  -               </xsl:if>
  -            </div>
  +              </a>
  +            </li>
             </xsl:if>
  +          <xsl:if  test="$home != .">
  +            <li class="home">
  +              <a accesskey="h">
  +                <xsl:attribute name="href">
  +                  <xsl:call-template name="href.target">
  +                    <xsl:with-param name="object" select="$home"/>
  +                  </xsl:call-template>
  +                </xsl:attribute>
  +                <xsl:text>Home</xsl:text>
  +              </a>
  +            </li>
  +          </xsl:if>
  +        </ul>
         </div>
       </xsl:if>
     </xsl:template>
   
   </xsl:stylesheet>
  +
  +
  
  
  



More information about the lfs-book mailing list