Changeset 8162

Show
Ignore:
Timestamp:
06/12/07 12:18:51 (1 year ago)
Author:
manuel
Message:

Integrated CLFS.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/new-xsl/pdf/lfs-pagesetup.xsl

    r8137 r8162  
    7878 
    7979    <!-- Control depth of sections shown in running headers or footers. 
    80          Be sure that no uneeded fo:marker are generated. --> 
     80         Be sure that no unneeded fo:marker are generated. --> 
    8181  <xsl:param name="marker.section.level" select="-1"></xsl:param> 
    8282 
     
    117117    <!-- book title: 
    118118          Centered the title and removed unused code. 
    119           Added missing revhistory support. 
    120119          Removed book.titlepage.separator. --> 
    121120    <!-- The original template is in {docbook-xsl}/fo/titlepage.templates.xsl --> 
     
    129128        <xsl:call-template name="book.titlepage.before.verso"/> 
    130129        <xsl:call-template name="book.titlepage.verso"/> 
    131         <xsl:apply-templates mode="book.titlepage.verso.auto.mode" 
    132                              select="bookinfo/revhistory"/> 
    133       </fo:block> 
     130      </fo:block> 
     131    </fo:block> 
     132  </xsl:template> 
     133 
     134    <!-- book titlepage verso: 
     135           Added missing bibliosource and revhistory support. 
     136           Removed unused code. --> 
     137    <!-- The original template is in {docbook-xsl}/fo/titlepage.templates.xsl --> 
     138  <xsl:template name="book.titlepage.verso"> 
     139    <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/title"/> 
     140    <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/corpauthor"/> 
     141    <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/authorgroup"/> 
     142    <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/author"/> 
     143    <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/othercredit"/> 
     144    <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/releaseinfo"/> 
     145    <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/pubdate"/> 
     146    <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/copyright"/> 
     147    <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/bibliosource"/> 
     148    <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/abstract"/> 
     149    <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/revhistory"/> 
     150    <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/legalnotice"/> 
     151  </xsl:template> 
     152 
     153    <!-- bibliosource: 
     154           Self-made template to handle bibliosource when inside bookinfo. --> 
     155  <xsl:template match="bibliosource" mode="book.titlepage.verso.auto.mode"> 
     156    <fo:block font-size="8pt"> 
     157      <xsl:apply-templates/> 
    134158    </fo:block> 
    135159  </xsl:template> 
    136160 
    137161    <!-- part title: 
    138           Centered the title and removed unused code. --> 
     162          Centered the title and removed unused code. --> 
    139163    <!-- The original template is in {docbook-xsl}/fo/titlepage.templates.xsl --> 
    140164  <xsl:template name="part.titlepage"> 
     
    153177 
    154178    <!-- chapter title: 
    155           Small font size and left alignament. --> 
     179          Small font size and left alignament. --> 
    156180    <!-- The original template is in {docbook-xsl}/fo/titlepage.templates.xsl --> 
    157181  <xsl:template match="title" mode="chapter.titlepage.recto.auto.mode"> 
  • branches/new-xsl/xhtml/lfs-navigational.xsl

    r8139 r8162  
    109109        <li class="prev"> 
    110110          <xsl:choose> 
     111 
    111112              <!-- If prev is a dummy sect1 that is the first one in a chapter, 
    112113                   links to the parent chapter.--> 
     
    130131              </p> 
    131132            </xsl:when> 
     133 
    132134              <!-- If prev is a dummy sect1 that is not the first one in a chapter, 
    133135                   links to the previous sect1.--> 
     
    151153              </p> 
    152154            </xsl:when> 
     155 
     156              <!-- Code for the "To Boot or To Chroot" CLFS links jumps. --> 
     157            <xsl:when test="$prev[@id='ch-chroot-devices'] or $prev[@id='ch-boot-whatnext']"> 
     158              <a accesskey="p"> 
     159                <xsl:attribute name="href"> 
     160                  <xsl:call-template name="href.target"> 
     161                    <xsl:with-param name="object" select="//sect1[@id='ch-temp-system-choose']"/> 
     162                  </xsl:call-template> 
     163                </xsl:attribute> 
     164                <xsl:attribute name="title"> 
     165                  <xsl:value-of select="//sect1[@id='ch-temp-system-choose']/title"/> 
     166                </xsl:attribute> 
     167                <xsl:call-template name="navig.content"> 
     168                  <xsl:with-param name="direction" select="'prev'"/> 
     169                </xsl:call-template> 
     170              </a> 
     171              <p> 
     172                <xsl:value-of select="//sect1[@id='ch-temp-system-choose']/title"/> 
     173              </p> 
     174            </xsl:when> 
     175 
    153176              <!-- Normal prev links --> 
    154177            <xsl:otherwise> 
     
    173196        </li> 
    174197      </xsl:if> 
    175         <!-- Next link except in the last page --> 
    176       <xsl:if test="count($next)&gt;0"> 
     198 
     199 
     200        <!-- Next link except in the last page and in the CLFS "choose" page --> 
     201      <xsl:if test="count($next)&gt;0 and (not(@id) or @id!='ch-temp-system-choose')"> 
    177202        <li class="next"> 
    178203          <xsl:choose> 
     204 
    179205              <!-- Current page is sect1 a next is a dummy sect1, link to the next one --> 
    180206            <xsl:when test="$next[@role='dummy'] and local-name(.) = 'sect1'"> 
     
    196222              </p> 
    197223            </xsl:when> 
    198               <!-- Current page is chapter a next is a dummy sect1, link to the next one --> 
     224 
     225              <!-- Current page is chapter and next is a dummy sect1, link to the next one --> 
    199226            <xsl:when test="$next[@role='dummy'] and local-name(.) = 'chapter'"> 
    200227              <a accesskey="n"> 
     
    215242              </p> 
    216243            </xsl:when> 
     244 
     245              <!-- Code for the "To Boot or To Chroot" CLFS links jumps. --> 
     246            <xsl:when test="$next[@id='chapter-chroot'] or $next[@id='chapter-boot']"> 
     247              <a accesskey="n"> 
     248                <xsl:attribute name="href"> 
     249                  <xsl:call-template name="href.target"> 
     250                    <xsl:with-param name="object" select="//part[@id='part5']"/> 
     251                  </xsl:call-template> 
     252                </xsl:attribute> 
     253                <xsl:attribute name="title"> 
     254                  <xsl:value-of select="//part[@id='part5']/title"/> 
     255                </xsl:attribute> 
     256                <xsl:call-template name="navig.content"> 
     257                  <xsl:with-param name="direction" select="'next'"/> 
     258                </xsl:call-template> 
     259              </a> 
     260              <p> 
     261                <xsl:value-of select="//part[@id='part5']/title"/> 
     262              </p> 
     263            </xsl:when> 
     264 
    217265              <!-- Normal next links. Take care of Index gentext support. --> 
    218266            <xsl:otherwise> 
     
    255303        </li> 
    256304      </xsl:if> 
     305 
     306 
    257307      <li class="up"> 
    258308        <xsl:choose> 
     
    279329        </xsl:choose> 
    280330      </li> 
     331 
     332 
    281333      <li class="home"> 
    282334        <xsl:choose> 
  • branches/new-xsl/xhtml/lfs-titles.xsl

    r8139 r8162  
    193193  </xsl:template> 
    194194 
     195    <!-- book.titlepage.verso: 
     196           Process bookinfo/bibliosource from here. --> 
     197    <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl --> 
     198  <xsl:template name="book.titlepage.verso"> 
     199    <xsl:apply-templates select="bookinfo/bibliosource"/> 
     200  </xsl:template> 
     201 
     202    <!-- bookinfo/bibliosource: 
     203           Self-made template to handle bibliosource when inside bookinfo. --> 
     204  <xsl:template match="bookinfo/bibliosource"> 
     205    <p class="copyright"> 
     206      <xsl:apply-templates/> 
     207    </p> 
     208  </xsl:template> 
     209 
    195210</xsl:stylesheet>