[ded6ddd] | 1 | <?xml version='1.0' encoding='ISO-8859-1'?>
|
---|
| 2 |
|
---|
| 3 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
| 4 | xmlns="http://www.w3.org/1999/xhtml"
|
---|
| 5 | version="1.0">
|
---|
| 6 |
|
---|
| 7 | <!-- Dropping the HEAD links -->
|
---|
| 8 | <xsl:template name="html.head">
|
---|
| 9 | <head>
|
---|
| 10 | <xsl:call-template name="system.head.content"/>
|
---|
| 11 | <xsl:call-template name="head.content"/>
|
---|
| 12 | <xsl:call-template name="user.head.content"/>
|
---|
| 13 | </head>
|
---|
| 14 | </xsl:template>
|
---|
| 15 |
|
---|
[a9e89d0] | 16 | <!-- Header Navigation-->
|
---|
[ded6ddd] | 17 | <xsl:template name="header.navigation">
|
---|
| 18 | <xsl:param name="prev" select="/foo"/>
|
---|
| 19 | <xsl:param name="next" select="/foo"/>
|
---|
| 20 | <xsl:param name="nav.context"/>
|
---|
| 21 | <xsl:variable name="home" select="/*[1]"/>
|
---|
| 22 | <xsl:variable name="up" select="parent::*"/>
|
---|
| 23 | <xsl:variable name="row" select="count($prev) > 0 or (count($up) > 0
|
---|
| 24 | and generate-id($up) != generate-id($home)) or count($next) > 0"/>
|
---|
| 25 | <xsl:if test="$row and $home != .">
|
---|
| 26 | <div class="navheader">
|
---|
| 27 | <xsl:if test="$home != .">
|
---|
| 28 | <div class="headertitles">
|
---|
[8df9f63] | 29 | <h4>
|
---|
[ded6ddd] | 30 | <xsl:apply-templates select="$home" mode="object.title.markup"/>
|
---|
| 31 | <xsl:text> - </xsl:text>
|
---|
| 32 | <xsl:apply-templates select="$home" mode="object.subtitle.markup"/>
|
---|
[8df9f63] | 33 | </h4>
|
---|
[ded6ddd] | 34 | <xsl:if test="$up != $home">
|
---|
[8df9f63] | 35 | <h3>
|
---|
[ded6ddd] | 36 | <xsl:apply-templates select="$up" mode="object.title.markup"/>
|
---|
[8df9f63] | 37 | </h3>
|
---|
[ded6ddd] | 38 | </xsl:if>
|
---|
| 39 | </div>
|
---|
| 40 | </xsl:if>
|
---|
[4238149] | 41 | <ul class="headerlinks">
|
---|
[ded6ddd] | 42 | <xsl:if test="count($prev)>0 and $prev != $home">
|
---|
[4238149] | 43 | <li class="prev">
|
---|
[ded6ddd] | 44 | <a accesskey="p">
|
---|
| 45 | <xsl:attribute name="href">
|
---|
| 46 | <xsl:call-template name="href.target">
|
---|
| 47 | <xsl:with-param name="object" select="$prev"/>
|
---|
| 48 | </xsl:call-template>
|
---|
| 49 | </xsl:attribute>
|
---|
[8df9f63] | 50 | <xsl:attribute name="title">
|
---|
| 51 | <xsl:value-of select="$prev/title"/>
|
---|
| 52 | </xsl:attribute>
|
---|
| 53 | <xsl:call-template name="navig.content">
|
---|
| 54 | <xsl:with-param name="direction" select="'prev'"/>
|
---|
| 55 | </xsl:call-template>
|
---|
[ded6ddd] | 56 | </a>
|
---|
[9fd2b20] | 57 | <p>
|
---|
| 58 | <xsl:value-of select="$prev/title"/>
|
---|
| 59 | </p>
|
---|
[4238149] | 60 | </li>
|
---|
[ded6ddd] | 61 | </xsl:if>
|
---|
| 62 | <xsl:if test="count($next)>0">
|
---|
[4238149] | 63 | <li class="next">
|
---|
[ded6ddd] | 64 | <a accesskey="n">
|
---|
| 65 | <xsl:attribute name="href">
|
---|
| 66 | <xsl:call-template name="href.target">
|
---|
| 67 | <xsl:with-param name="object" select="$next"/>
|
---|
| 68 | </xsl:call-template>
|
---|
| 69 | </xsl:attribute>
|
---|
[8df9f63] | 70 | <xsl:attribute name="title">
|
---|
[9e2b55c] | 71 | <xsl:choose>
|
---|
| 72 | <xsl:when test="local-name($next)='index'">
|
---|
| 73 | <xsl:text>Index</xsl:text>
|
---|
| 74 | </xsl:when>
|
---|
| 75 | <xsl:otherwise>
|
---|
| 76 | <xsl:value-of select="$next/title"/>
|
---|
| 77 | </xsl:otherwise>
|
---|
| 78 | </xsl:choose>
|
---|
[8df9f63] | 79 | </xsl:attribute>
|
---|
| 80 | <xsl:call-template name="navig.content">
|
---|
| 81 | <xsl:with-param name="direction" select="'next'"/>
|
---|
| 82 | </xsl:call-template>
|
---|
[ded6ddd] | 83 | </a>
|
---|
[9fd2b20] | 84 | <p>
|
---|
[9e2b55c] | 85 | <xsl:choose>
|
---|
| 86 | <xsl:when test="local-name($next)='index'">
|
---|
| 87 | <xsl:text>Index</xsl:text>
|
---|
| 88 | </xsl:when>
|
---|
| 89 | <xsl:otherwise>
|
---|
| 90 | <xsl:value-of select="$next/title"/>
|
---|
| 91 | </xsl:otherwise>
|
---|
| 92 | </xsl:choose>
|
---|
[9fd2b20] | 93 | </p>
|
---|
[4238149] | 94 | </li>
|
---|
[a9e89d0] | 95 | </xsl:if>
|
---|
| 96 | <li class="up">
|
---|
[9fd2b20] | 97 | <xsl:if test="count($up)>0 and $up != $home">
|
---|
| 98 | <a accesskey="u">
|
---|
| 99 | <xsl:attribute name="href">
|
---|
| 100 | <xsl:call-template name="href.target">
|
---|
| 101 | <xsl:with-param name="object" select="$up"/>
|
---|
| 102 | </xsl:call-template>
|
---|
| 103 | </xsl:attribute>
|
---|
| 104 | <xsl:attribute name="title">
|
---|
| 105 | <xsl:apply-templates select="$up" mode="object.title.markup"/>
|
---|
| 106 | </xsl:attribute>
|
---|
| 107 | <xsl:call-template name="navig.content">
|
---|
| 108 | <xsl:with-param name="direction" select="'up'"/>
|
---|
[a9e89d0] | 109 | </xsl:call-template>
|
---|
[9fd2b20] | 110 | </a>
|
---|
| 111 | </xsl:if>
|
---|
| 112 | <xsl:text>.</xsl:text>
|
---|
[a9e89d0] | 113 | </li>
|
---|
[4238149] | 114 | <li class="home">
|
---|
[ded6ddd] | 115 | <a accesskey="h">
|
---|
| 116 | <xsl:attribute name="href">
|
---|
| 117 | <xsl:call-template name="href.target">
|
---|
| 118 | <xsl:with-param name="object" select="$home"/>
|
---|
| 119 | </xsl:call-template>
|
---|
| 120 | </xsl:attribute>
|
---|
[8df9f63] | 121 | <xsl:attribute name="title">
|
---|
| 122 | <xsl:value-of select="$home/bookinfo/title"/>
|
---|
| 123 | <xsl:text> - </xsl:text>
|
---|
| 124 | <xsl:value-of select="$home/bookinfo/subtitle"/>
|
---|
| 125 | </xsl:attribute>
|
---|
| 126 | <xsl:call-template name="navig.content">
|
---|
| 127 | <xsl:with-param name="direction" select="'home'"/>
|
---|
| 128 | </xsl:call-template>
|
---|
[ded6ddd] | 129 | </a>
|
---|
[4238149] | 130 | </li>
|
---|
| 131 | </ul>
|
---|
[ded6ddd] | 132 | </div>
|
---|
| 133 | </xsl:if>
|
---|
| 134 | </xsl:template>
|
---|
| 135 |
|
---|
[a9e89d0] | 136 | <!-- Footer Navigation-->
|
---|
[ded6ddd] | 137 | <xsl:template name="footer.navigation">
|
---|
| 138 | <xsl:param name="prev" select="/foo"/>
|
---|
| 139 | <xsl:param name="next" select="/foo"/>
|
---|
| 140 | <xsl:param name="nav.context"/>
|
---|
| 141 | <xsl:variable name="home" select="/*[1]"/>
|
---|
| 142 | <xsl:variable name="up" select="parent::*"/>
|
---|
| 143 | <xsl:variable name="row" select="count($prev) > 0 or count($up) > 0
|
---|
| 144 | or count($next) > 0 or generate-id($home) != generate-id(.)"/>
|
---|
| 145 | <xsl:if test="$row">
|
---|
| 146 | <div class="navfooter">
|
---|
[4238149] | 147 | <ul>
|
---|
[ded6ddd] | 148 | <xsl:if test="count($prev)>0 and $prev != $home">
|
---|
[4238149] | 149 | <li class="prev">
|
---|
[ded6ddd] | 150 | <a accesskey="p">
|
---|
| 151 | <xsl:attribute name="href">
|
---|
| 152 | <xsl:call-template name="href.target">
|
---|
| 153 | <xsl:with-param name="object" select="$prev"/>
|
---|
| 154 | </xsl:call-template>
|
---|
| 155 | </xsl:attribute>
|
---|
[8df9f63] | 156 | <xsl:attribute name="title">
|
---|
| 157 | <xsl:value-of select="$prev/title"/>
|
---|
| 158 | </xsl:attribute>
|
---|
| 159 | <xsl:call-template name="navig.content">
|
---|
| 160 | <xsl:with-param name="direction" select="'prev'"/>
|
---|
| 161 | </xsl:call-template>
|
---|
[4238149] | 162 | </a>
|
---|
[9fd2b20] | 163 | <p>
|
---|
| 164 | <xsl:value-of select="$prev/title"/>
|
---|
| 165 | </p>
|
---|
[4238149] | 166 | </li>
|
---|
[ded6ddd] | 167 | </xsl:if>
|
---|
| 168 | <xsl:if test="count($next)>0">
|
---|
[4238149] | 169 | <li class="next">
|
---|
[ded6ddd] | 170 | <a accesskey="n">
|
---|
| 171 | <xsl:attribute name="href">
|
---|
| 172 | <xsl:call-template name="href.target">
|
---|
| 173 | <xsl:with-param name="object" select="$next"/>
|
---|
| 174 | </xsl:call-template>
|
---|
| 175 | </xsl:attribute>
|
---|
[8df9f63] | 176 | <xsl:attribute name="title">
|
---|
[9e2b55c] | 177 | <xsl:choose>
|
---|
| 178 | <xsl:when test="local-name($next)='index'">
|
---|
| 179 | <xsl:text>Index</xsl:text>
|
---|
| 180 | </xsl:when>
|
---|
| 181 | <xsl:otherwise>
|
---|
| 182 | <xsl:value-of select="$next/title"/>
|
---|
| 183 | </xsl:otherwise>
|
---|
| 184 | </xsl:choose>
|
---|
[8df9f63] | 185 | </xsl:attribute>
|
---|
| 186 | <xsl:call-template name="navig.content">
|
---|
| 187 | <xsl:with-param name="direction" select="'next'"/>
|
---|
| 188 | </xsl:call-template>
|
---|
[4238149] | 189 | </a>
|
---|
[9fd2b20] | 190 | <p>
|
---|
[9e2b55c] | 191 | <xsl:choose>
|
---|
| 192 | <xsl:when test="local-name($next)='index'">
|
---|
| 193 | <xsl:text>Index</xsl:text>
|
---|
| 194 | </xsl:when>
|
---|
| 195 | <xsl:otherwise>
|
---|
| 196 | <xsl:value-of select="$next/title"/>
|
---|
| 197 | </xsl:otherwise>
|
---|
| 198 | </xsl:choose>
|
---|
[9fd2b20] | 199 | </p>
|
---|
[4238149] | 200 | </li>
|
---|
[ded6ddd] | 201 | </xsl:if>
|
---|
[4238149] | 202 | <li class="up">
|
---|
[9fd2b20] | 203 | <xsl:if test="count($up)>0 and $up != $home">
|
---|
| 204 | <a accesskey="u">
|
---|
| 205 | <xsl:attribute name="href">
|
---|
| 206 | <xsl:call-template name="href.target">
|
---|
| 207 | <xsl:with-param name="object" select="$up"/>
|
---|
| 208 | </xsl:call-template>
|
---|
| 209 | </xsl:attribute>
|
---|
| 210 | <xsl:attribute name="title">
|
---|
| 211 | <xsl:apply-templates select="$up" mode="object.title.markup"/>
|
---|
| 212 | </xsl:attribute>
|
---|
| 213 | <xsl:call-template name="navig.content">
|
---|
| 214 | <xsl:with-param name="direction" select="'up'"/>
|
---|
[ded6ddd] | 215 | </xsl:call-template>
|
---|
[9fd2b20] | 216 | </a>
|
---|
| 217 | </xsl:if>
|
---|
| 218 | <xsl:text>.</xsl:text>
|
---|
[4238149] | 219 | </li>
|
---|
| 220 | <li class="home">
|
---|
[9fd2b20] | 221 | <xsl:if test="$home != .">
|
---|
| 222 | <a accesskey="h">
|
---|
| 223 | <xsl:attribute name="href">
|
---|
| 224 | <xsl:call-template name="href.target">
|
---|
| 225 | <xsl:with-param name="object" select="$home"/>
|
---|
| 226 | </xsl:call-template>
|
---|
| 227 | </xsl:attribute>
|
---|
| 228 | <xsl:attribute name="title">
|
---|
| 229 | <xsl:value-of select="$home/bookinfo/title"/>
|
---|
| 230 | <xsl:text> - </xsl:text>
|
---|
| 231 | <xsl:value-of select="$home/bookinfo/subtitle"/>
|
---|
| 232 | </xsl:attribute>
|
---|
| 233 | <xsl:call-template name="navig.content">
|
---|
| 234 | <xsl:with-param name="direction" select="'home'"/>
|
---|
[4238149] | 235 | </xsl:call-template>
|
---|
[9fd2b20] | 236 | </a>
|
---|
| 237 | </xsl:if>
|
---|
| 238 | <xsl:text>.</xsl:text>
|
---|
[4238149] | 239 | </li>
|
---|
| 240 | </ul>
|
---|
[ded6ddd] | 241 | </div>
|
---|
| 242 | </xsl:if>
|
---|
| 243 | </xsl:template>
|
---|
| 244 |
|
---|
| 245 | </xsl:stylesheet>
|
---|
[4238149] | 246 |
|
---|
| 247 |
|
---|