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

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Fri May 14 17:27:17 PDT 2004


manuel      04/05/14 18:27:17

  Modified:    BOOK/stylesheets Tag: b5_1 lfs.css
               BOOK/stylesheets/xhtml Tag: b5_1 lfs-navigational.xsl
  Log:
  Navigational links: Back again to table layout for version 5.1.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.3   +1 -37     LFS/BOOK/stylesheets/lfs.css
  
  Index: lfs.css
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/stylesheets/lfs.css,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- lfs.css	8 May 2004 14:02:56 -0000	1.1.2.2
  +++ lfs.css	15 May 2004 00:27:17 -0000	1.1.2.3
  @@ -3,47 +3,11 @@
     font-size: medium;
     font-family: verdana, tahoma, helvetica, arial, sans-serif;
     text-align: left;
  +  background: #fff;
   }
   
   .toc ul, .index ul {
   	list-style: none;
  -}
  -
  -.navheader, .navfooter {
  -  font-size: smaller;
  -  text-align: center;
  -}
  -
  -.headerlinks {
  -  border-bottom : solid 2px green;
  -  padding-bottom: 0.5em;
  -}
  -
  -.navfooter {
  -  border-top : solid 2px green;
  -  padding-top: 0.5em;
  -  margin-top: 0.5em;
  -}
  -
  -.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; */
  -   width  : 10em;
  -   /* background-color: #bbb; */
  -   margin: 0px auto;
   }
   
   li.preface {
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.3   +68 -120   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.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- lfs-navigational.xsl	8 May 2004 14:02:56 -0000	1.1.2.2
  +++ lfs-navigational.xsl	15 May 2004 00:27:17 -0000	1.1.2.3
  @@ -26,125 +26,73 @@
               and generate-id($up) != generate-id($home)) or count($next) > 0"/>
       <xsl:if test="$row and $home != .">
         <div class="navheader">
  -        <xsl:if test="$home != .">
  -          <div class="headertitles">
  -            <p>
  -              <xsl:apply-templates select="$home" mode="object.title.markup"/>
  -              <xsl:text> - </xsl:text>
  -              <xsl:apply-templates select="$home" mode="object.subtitle.markup"/>
  -            </p>
  -            <xsl:if test="$up != $home">
  -              <p><b>
  -                <xsl:apply-templates select="$up" mode="object.title.markup"/>
  -              </b></p>
  -            </xsl:if>
  -          </div>
  -        </xsl:if>
  -        <div class="headerlinks">
  -          <xsl:if test="count($prev)>0 and $prev != $home">
  -            <div class='prev'>
  -              <a accesskey="p">
  -                <xsl:attribute name="href">
  -                  <xsl:call-template name="href.target">
  -                    <xsl:with-param name="object" select="$prev"/>
  -                  </xsl:call-template>
  -                </xsl:attribute>
  -                <xsl:text>Prev</xsl:text>
  -              </a>
  -            </div>
  -          </xsl:if>
  -          <xsl:if test="count($next)>0">
  -            <div class='next'>
  -              <a accesskey="n">
  -                <xsl:attribute name="href">
  -                  <xsl:call-template name="href.target">
  -                    <xsl:with-param name="object" select="$next"/>
  -                  </xsl:call-template>
  -                </xsl:attribute>
  -                <xsl:text>Next</xsl:text>
  -              </a>
  -            </div>
  -          </xsl:if>
  -          <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>
  -        </div>
  -      </div>
  -    </xsl:if>
  -  </xsl:template>
  -
  -  	<!-- Footer Navigation-->
  -  <xsl:template name="footer.navigation">
  -    <xsl:param name="prev" select="/foo"/>
  -    <xsl:param name="next" select="/foo"/>
  -    <xsl:param name="nav.context"/>
  -    <xsl:variable name="home" select="/*[1]"/>
  -    <xsl:variable name="up" select="parent::*"/>
  -    <xsl:variable name="row" select="count($prev) > 0 or count($up) > 0
  -            or count($next) > 0 or generate-id($home) != generate-id(.)"/>
  -    <xsl:if test="$row">
  -      <div class="navfooter">
  -          <xsl:if test="count($prev)>0 and $prev != $home">
  -            <div class='prev'>
  -              <a accesskey="p">
  -                <xsl:attribute name="href">
  -                  <xsl:call-template name="href.target">
  -                    <xsl:with-param name="object" select="$prev"/>
  -                  </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>
  -          </xsl:if>
  -          <xsl:if test="count($next)>0">
  -            <div class='next'>
  -              <a accesskey="n">
  -                <xsl:attribute name="href">
  -                  <xsl:call-template name="href.target">
  -                    <xsl:with-param name="object" select="$next"/>
  -                  </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>
  -          </xsl:if>
  -          <xsl:if test="count($up)>0 and $up != $home">
  -            <div class='up'>
  -              <a accesskey="u">
  -                <xsl:attribute name="href">
  -                  <xsl:call-template name="href.target">
  -                    <xsl:with-param name="object" select="$up"/>
  -                  </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>
  -          </xsl:if>
  -      </div>
  -    </xsl:if>
  -  </xsl:template>
  +				<xsl:if test="$home != .">
  +					<table width="100%" summary="Navigation header">
  +						<tr>
  +							<th colspan="3" align="center">
  +								<h4>
  +									<xsl:apply-templates select="$home" mode="object.title.markup"/>
  +									<xsl:text> - </xsl:text>
  +                  <xsl:apply-templates select="$home" mode="object.subtitle.markup"/>
  +								</h4>
  +							</th>
  +						</tr>
  +						<xsl:if test="$up != $home">
  +							<tr>
  +								<th colspan="3" align="center">
  +									<h3>
  +										<xsl:apply-templates select="$up" mode="object.title.markup"/>
  +									</h3>
  +								</th>
  +							</tr>
  +						</xsl:if>
  +						<tr>
  +							<td width="33%" align="left">
  +								<a accesskey="p">
  +									<xsl:attribute name="href">
  +										<xsl:call-template name="href.target">
  +											<xsl:with-param name="object" select="$prev"/>
  +										</xsl:call-template>
  +									</xsl:attribute>
  +									<xsl:call-template name="navig.content">
  +										<xsl:with-param name="direction" select="'prev'"/>
  +									</xsl:call-template>
  +								</a>
  +								<xsl:text> </xsl:text>
  +							</td>
  +							<td width="34%" align="center">
  +								<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:call-template name="navig.content">
  +										<xsl:with-param name="direction" select="'home'"/>
  +									</xsl:call-template>
  +								</a>
  +							</td>
  +							<td width="33%" align="right">
  +								<xsl:text> </xsl:text>
  +								<xsl:if test="count($next)>0">
  +									<a accesskey="n">
  +										<xsl:attribute name="href">
  +											<xsl:call-template name="href.target">
  +												<xsl:with-param name="object" select="$next"/>
  +											</xsl:call-template>
  +										</xsl:attribute>
  +										<xsl:call-template name="navig.content">
  +											<xsl:with-param name="direction" select="'next'"/>
  +										</xsl:call-template>
  +									</a>
  +								</xsl:if>
  +							</td>
  +						</tr>
  +					</table>
  +					<hr/>
  +				</xsl:if>
  +			</div>
  +		</xsl:if>
  +	</xsl:template>
   
   </xsl:stylesheet>
  
  
  



More information about the lfs-book mailing list