Changeset 3fe8b511 for stylesheets/xhtml/lfs-navigational.xsl
- Timestamp:
- 01/07/2005 05:14:15 AM (19 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- d8dc77a
- Parents:
- bad8b53
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/xhtml/lfs-navigational.xsl
rbad8b53 r3fe8b511 1 1 <?xml version='1.0' encoding='ISO-8859-1'?> 2 3 <!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->4 <!-- Updates by Bruce Dubbs <bdubbs@linuxfromscratch.org> -->5 2 6 3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" … … 17 14 </xsl:template> 18 15 19 16 <!-- Header Navigation--> 20 17 <xsl:template name="header.navigation"> 21 18 <xsl:param name="prev" select="/foo"/> … … 30 27 <xsl:if test="$home != ."> 31 28 <div class="headertitles"> 32 <p> 33 <xsl:apply-templates select="$home" mode="object.title.markup"/> 34 <xsl:text> – </xsl:text> <!-- ndash --> 29 <h4> 30 <xsl:text>Beyond Linux From Scratch - </xsl:text> 35 31 <xsl:apply-templates select="$home" mode="object.subtitle.markup"/> 36 </ p>32 </h4> 37 33 <xsl:if test="$up != $home"> 38 < p><b>34 <h3> 39 35 <xsl:apply-templates select="$up" mode="object.title.markup"/> 40 </ b></p>36 </h3> 41 37 </xsl:if> 42 38 </div> 43 39 </xsl:if> 44 < divclass="headerlinks">45 < div class='prev'>46 < xsl:if test="count($prev)>0 and $prev != $home">40 <ul class="headerlinks"> 41 <xsl:if test="count($prev)>0 and $prev != $home"> 42 <li class="prev"> 47 43 <a accesskey="p"> 48 44 <xsl:attribute name="href"> … … 51 47 </xsl:call-template> 52 48 </xsl:attribute> 53 <xsl:text>Prev</xsl:text> 54 </a> 55 </xsl:if> 56 <xsl:text> </xsl:text></div> <!-- nbsp --> 57 <div class='next'><xsl:text> </xsl:text> 58 <xsl:if test="count($next)>0"> 49 <xsl:attribute name="title"> 50 <xsl:value-of select="$prev/title"/> 51 </xsl:attribute> 52 <xsl:call-template name="navig.content"> 53 <xsl:with-param name="direction" select="'prev'"/> 54 </xsl:call-template> 55 </a> 56 <p> 57 <xsl:value-of select="$prev/title"/> 58 </p> 59 </li> 60 </xsl:if> 61 <xsl:if test="count($next)>0"> 62 <li class="next"> 59 63 <a accesskey="n"> 60 64 <xsl:attribute name="href"> … … 63 67 </xsl:call-template> 64 68 </xsl:attribute> 65 <xsl:text>Next</xsl:text> 66 </a> 67 </xsl:if> 68 </div> 69 <div class='home'> 69 <xsl:attribute name="title"> 70 <xsl:choose> 71 <xsl:when test="local-name($next)='index'"> 72 <xsl:call-template name="gentext"> 73 <xsl:with-param name="key">Index</xsl:with-param> 74 </xsl:call-template> 75 </xsl:when> 76 <xsl:otherwise> 77 <xsl:value-of select="$next/title"/> 78 </xsl:otherwise> 79 </xsl:choose> 80 </xsl:attribute> 81 <xsl:call-template name="navig.content"> 82 <xsl:with-param name="direction" select="'next'"/> 83 </xsl:call-template> 84 </a> 85 <p> 86 <xsl:choose> 87 <xsl:when test="local-name($next)='index'"> 88 <xsl:call-template name="gentext"> 89 <xsl:with-param name="key">Index</xsl:with-param> 90 </xsl:call-template> 91 </xsl:when> 92 <xsl:otherwise> 93 <xsl:value-of select="$next/title"/> 94 </xsl:otherwise> 95 </xsl:choose> 96 </p> 97 </li> 98 </xsl:if> 99 <li class="up"> 100 <xsl:if test="count($up)>0 and $up != $home"> 101 <a accesskey="u"> 102 <xsl:attribute name="href"> 103 <xsl:call-template name="href.target"> 104 <xsl:with-param name="object" select="$up"/> 105 </xsl:call-template> 106 </xsl:attribute> 107 <xsl:attribute name="title"> 108 <xsl:apply-templates select="$up" mode="object.title.markup"/> 109 </xsl:attribute> 110 <xsl:call-template name="navig.content"> 111 <xsl:with-param name="direction" select="'up'"/> 112 </xsl:call-template> 113 </a> 114 </xsl:if> 115 <xsl:text>.</xsl:text> 116 </li> 117 <li class="home"> 70 118 <a accesskey="h"> 71 119 <xsl:attribute name="href"> … … 74 122 </xsl:call-template> 75 123 </xsl:attribute> 76 <xsl:text>Home</xsl:text> 124 <xsl:attribute name="title"> 125 <xsl:value-of select="$home/bookinfo/title"/> 126 <xsl:text> - </xsl:text> 127 <xsl:value-of select="$home/bookinfo/subtitle"/> 128 </xsl:attribute> 129 <xsl:call-template name="navig.content"> 130 <xsl:with-param name="direction" select="'home'"/> 131 </xsl:call-template> 77 132 </a> 78 </ div>79 </ div>133 </li> 134 </ul> 80 135 </div> 81 136 </xsl:if> 82 137 </xsl:template> 83 138 84 139 <!-- Footer Navigation--> 85 140 <xsl:template name="footer.navigation"> 86 141 <xsl:param name="prev" select="/foo"/> … … 93 148 <xsl:if test="$row"> 94 149 <div class="navfooter"> 95 <div class='prev'> 96 <xsl:if test="count($prev)>0 and $prev != $home"> 150 <ul> 151 <xsl:if test="count($prev)>0 and $prev != $home"> 152 <li class="prev"> 97 153 <a accesskey="p"> 98 154 <xsl:attribute name="href"> … … 101 157 </xsl:call-template> 102 158 </xsl:attribute> 103 <xsl:text>Prev</xsl:text> 104 </a><br/> 105 <!-- <xsl:text> </xsl:text> --> 106 <xsl:apply-templates select="$prev" mode="object.title.markup"/> 107 </xsl:if> 108 <xsl:text> </xsl:text> 109 </div> <!-- nbsp --> 110 <div class='next'><xsl:text> </xsl:text> 159 <xsl:attribute name="title"> 160 <xsl:value-of select="$prev/title"/> 161 </xsl:attribute> 162 <xsl:call-template name="navig.content"> 163 <xsl:with-param name="direction" select="'prev'"/> 164 </xsl:call-template> 165 </a> 166 <p> 167 <xsl:value-of select="$prev/title"/> 168 </p> 169 </li> 170 </xsl:if> 111 171 <xsl:if test="count($next)>0"> 172 <li class="next"> 112 173 <a accesskey="n"> 113 174 <xsl:attribute name="href"> … … 116 177 </xsl:call-template> 117 178 </xsl:attribute> 118 <xsl:text>Next</xsl:text> 119 </a><br/> 120 <!-- <xsl:text> </xsl:text> --> 121 <xsl:apply-templates select="$next" mode="object.title.markup"/> 122 </xsl:if> 123 </div> 124 <xsl:if test="count($up)>0 and $up != $home"> 125 <div class='up'> 126 <a accesskey="u"> 127 <xsl:attribute name="href"> 128 <xsl:call-template name="href.target"> 129 <xsl:with-param name="object" select="$up"/> 130 </xsl:call-template> 131 </xsl:attribute> 132 <xsl:text>Up</xsl:text> 133 </a> 134 </div> 135 </xsl:if> 136 <div class='home'> 137 <xsl:if test="$home != ."> 138 <a accesskey="h"> 139 <xsl:attribute name="href"> 140 <xsl:call-template name="href.target"> 141 <xsl:with-param name="object" select="$home"/> 142 </xsl:call-template> 143 </xsl:attribute> 144 <xsl:text>Home</xsl:text> 145 </a> 146 </xsl:if> 147 </div> 179 <xsl:attribute name="title"> 180 <xsl:choose> 181 <xsl:when test="local-name($next)='index'"> 182 <xsl:call-template name="gentext"> 183 <xsl:with-param name="key">Index</xsl:with-param> 184 </xsl:call-template> 185 </xsl:when> 186 <xsl:otherwise> 187 <xsl:value-of select="$next/title"/> 188 </xsl:otherwise> 189 </xsl:choose> 190 </xsl:attribute> 191 <xsl:call-template name="navig.content"> 192 <xsl:with-param name="direction" select="'next'"/> 193 </xsl:call-template> 194 </a> 195 <p> 196 <xsl:choose> 197 <xsl:when test="local-name($next)='index'"> 198 <xsl:call-template name="gentext"> 199 <xsl:with-param name="key">Index</xsl:with-param> 200 </xsl:call-template> 201 </xsl:when> 202 <xsl:otherwise> 203 <xsl:value-of select="$next/title"/> 204 </xsl:otherwise> 205 </xsl:choose> 206 </p> 207 </li> 208 </xsl:if> 209 <li class="up"> 210 <xsl:if test="count($up)>0 and $up != $home"> 211 <a accesskey="u"> 212 <xsl:attribute name="href"> 213 <xsl:call-template name="href.target"> 214 <xsl:with-param name="object" select="$up"/> 215 </xsl:call-template> 216 </xsl:attribute> 217 <xsl:attribute name="title"> 218 <xsl:apply-templates select="$up" mode="object.title.markup"/> 219 </xsl:attribute> 220 <xsl:call-template name="navig.content"> 221 <xsl:with-param name="direction" select="'up'"/> 222 </xsl:call-template> 223 </a> 224 </xsl:if> 225 <xsl:text>.</xsl:text> 226 </li> 227 <li class="home"> 228 <xsl:if test="$home != ."> 229 <a accesskey="h"> 230 <xsl:attribute name="href"> 231 <xsl:call-template name="href.target"> 232 <xsl:with-param name="object" select="$home"/> 233 </xsl:call-template> 234 </xsl:attribute> 235 <xsl:attribute name="title"> 236 <xsl:value-of select="$home/bookinfo/title"/> 237 <xsl:text> - </xsl:text> 238 <xsl:value-of select="$home/bookinfo/subtitle"/> 239 </xsl:attribute> 240 <xsl:call-template name="navig.content"> 241 <xsl:with-param name="direction" select="'home'"/> 242 </xsl:call-template> 243 </a> 244 </xsl:if> 245 <xsl:text>.</xsl:text> 246 </li> 247 </ul> 148 248 </div> 149 249 </xsl:if>
Note:
See TracChangeset
for help on using the changeset viewer.