Changeset 8162
- Timestamp:
- 06/12/07 12:18:51 (1 year ago)
- Files:
-
- branches/new-xsl/clfs-chunked.xsl (added)
- branches/new-xsl/clfs-nochunks.xsl (added)
- branches/new-xsl/clfs-pdf.xsl (added)
- branches/new-xsl/pdf/lfs-pagesetup.xsl (modified) (4 diffs)
- branches/new-xsl/xhtml/lfs-navigational.xsl (modified) (8 diffs)
- branches/new-xsl/xhtml/lfs-titles.xsl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/new-xsl/pdf/lfs-pagesetup.xsl
r8137 r8162 78 78 79 79 <!-- Control depth of sections shown in running headers or footers. 80 Be sure that no un eeded fo:marker are generated. -->80 Be sure that no unneeded fo:marker are generated. --> 81 81 <xsl:param name="marker.section.level" select="-1"></xsl:param> 82 82 … … 117 117 <!-- book title: 118 118 Centered the title and removed unused code. 119 Added missing revhistory support.120 119 Removed book.titlepage.separator. --> 121 120 <!-- The original template is in {docbook-xsl}/fo/titlepage.templates.xsl --> … … 129 128 <xsl:call-template name="book.titlepage.before.verso"/> 130 129 <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/> 134 158 </fo:block> 135 159 </xsl:template> 136 160 137 161 <!-- part title: 138 Centered the title and removed unused code. -->162 Centered the title and removed unused code. --> 139 163 <!-- The original template is in {docbook-xsl}/fo/titlepage.templates.xsl --> 140 164 <xsl:template name="part.titlepage"> … … 153 177 154 178 <!-- chapter title: 155 Small font size and left alignament. -->179 Small font size and left alignament. --> 156 180 <!-- The original template is in {docbook-xsl}/fo/titlepage.templates.xsl --> 157 181 <xsl:template match="title" mode="chapter.titlepage.recto.auto.mode"> branches/new-xsl/xhtml/lfs-navigational.xsl
r8139 r8162 109 109 <li class="prev"> 110 110 <xsl:choose> 111 111 112 <!-- If prev is a dummy sect1 that is the first one in a chapter, 112 113 links to the parent chapter.--> … … 130 131 </p> 131 132 </xsl:when> 133 132 134 <!-- If prev is a dummy sect1 that is not the first one in a chapter, 133 135 links to the previous sect1.--> … … 151 153 </p> 152 154 </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 153 176 <!-- Normal prev links --> 154 177 <xsl:otherwise> … … 173 196 </li> 174 197 </xsl:if> 175 <!-- Next link except in the last page --> 176 <xsl:if test="count($next)>0"> 198 199 200 <!-- Next link except in the last page and in the CLFS "choose" page --> 201 <xsl:if test="count($next)>0 and (not(@id) or @id!='ch-temp-system-choose')"> 177 202 <li class="next"> 178 203 <xsl:choose> 204 179 205 <!-- Current page is sect1 a next is a dummy sect1, link to the next one --> 180 206 <xsl:when test="$next[@role='dummy'] and local-name(.) = 'sect1'"> … … 196 222 </p> 197 223 </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 --> 199 226 <xsl:when test="$next[@role='dummy'] and local-name(.) = 'chapter'"> 200 227 <a accesskey="n"> … … 215 242 </p> 216 243 </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 217 265 <!-- Normal next links. Take care of Index gentext support. --> 218 266 <xsl:otherwise> … … 255 303 </li> 256 304 </xsl:if> 305 306 257 307 <li class="up"> 258 308 <xsl:choose> … … 279 329 </xsl:choose> 280 330 </li> 331 332 281 333 <li class="home"> 282 334 <xsl:choose> branches/new-xsl/xhtml/lfs-titles.xsl
r8139 r8162 193 193 </xsl:template> 194 194 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 195 210 </xsl:stylesheet>
