[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>
|
---|
[4238149] | 57 | </li>
|
---|
[ded6ddd] | 58 | </xsl:if>
|
---|
| 59 | <xsl:if test="count($next)>0">
|
---|
[4238149] | 60 | <li class="next">
|
---|
[ded6ddd] | 61 | <a accesskey="n">
|
---|
| 62 | <xsl:attribute name="href">
|
---|
| 63 | <xsl:call-template name="href.target">
|
---|
| 64 | <xsl:with-param name="object" select="$next"/>
|
---|
| 65 | </xsl:call-template>
|
---|
| 66 | </xsl:attribute>
|
---|
[8df9f63] | 67 | <xsl:attribute name="title">
|
---|
| 68 | <xsl:value-of select="$next/title"/>
|
---|
| 69 | </xsl:attribute>
|
---|
| 70 | <xsl:call-template name="navig.content">
|
---|
| 71 | <xsl:with-param name="direction" select="'next'"/>
|
---|
| 72 | </xsl:call-template>
|
---|
[ded6ddd] | 73 | </a>
|
---|
[4238149] | 74 | </li>
|
---|
[a9e89d0] | 75 | </xsl:if>
|
---|
| 76 | <xsl:if test="count($up)>0 and $up != $home">
|
---|
| 77 | <li class="up">
|
---|
| 78 | <a accesskey="u">
|
---|
| 79 | <xsl:attribute name="href">
|
---|
| 80 | <xsl:call-template name="href.target">
|
---|
| 81 | <xsl:with-param name="object" select="$up"/>
|
---|
| 82 | </xsl:call-template>
|
---|
| 83 | </xsl:attribute>
|
---|
[8df9f63] | 84 | <xsl:attribute name="title">
|
---|
| 85 | <xsl:apply-templates select="$up" mode="object.title.markup"/>
|
---|
| 86 | </xsl:attribute>
|
---|
| 87 | <xsl:call-template name="navig.content">
|
---|
| 88 | <xsl:with-param name="direction" select="'up'"/>
|
---|
| 89 | </xsl:call-template>
|
---|
[a9e89d0] | 90 | </a>
|
---|
| 91 | </li>
|
---|
| 92 | </xsl:if>
|
---|
[4238149] | 93 | <li class="home">
|
---|
[ded6ddd] | 94 | <a accesskey="h">
|
---|
| 95 | <xsl:attribute name="href">
|
---|
| 96 | <xsl:call-template name="href.target">
|
---|
| 97 | <xsl:with-param name="object" select="$home"/>
|
---|
| 98 | </xsl:call-template>
|
---|
| 99 | </xsl:attribute>
|
---|
[8df9f63] | 100 | <xsl:attribute name="title">
|
---|
| 101 | <xsl:value-of select="$home/bookinfo/title"/>
|
---|
| 102 | <xsl:text> - </xsl:text>
|
---|
| 103 | <xsl:value-of select="$home/bookinfo/subtitle"/>
|
---|
| 104 | </xsl:attribute>
|
---|
| 105 | <xsl:call-template name="navig.content">
|
---|
| 106 | <xsl:with-param name="direction" select="'home'"/>
|
---|
| 107 | </xsl:call-template>
|
---|
[ded6ddd] | 108 | </a>
|
---|
[4238149] | 109 | </li>
|
---|
| 110 | </ul>
|
---|
[ded6ddd] | 111 | </div>
|
---|
| 112 | </xsl:if>
|
---|
| 113 | </xsl:template>
|
---|
| 114 |
|
---|
[a9e89d0] | 115 | <!-- Footer Navigation-->
|
---|
[ded6ddd] | 116 | <xsl:template name="footer.navigation">
|
---|
| 117 | <xsl:param name="prev" select="/foo"/>
|
---|
| 118 | <xsl:param name="next" select="/foo"/>
|
---|
| 119 | <xsl:param name="nav.context"/>
|
---|
| 120 | <xsl:variable name="home" select="/*[1]"/>
|
---|
| 121 | <xsl:variable name="up" select="parent::*"/>
|
---|
| 122 | <xsl:variable name="row" select="count($prev) > 0 or count($up) > 0
|
---|
| 123 | or count($next) > 0 or generate-id($home) != generate-id(.)"/>
|
---|
| 124 | <xsl:if test="$row">
|
---|
| 125 | <div class="navfooter">
|
---|
[4238149] | 126 | <ul>
|
---|
[ded6ddd] | 127 | <xsl:if test="count($prev)>0 and $prev != $home">
|
---|
[4238149] | 128 | <li class="prev">
|
---|
[ded6ddd] | 129 | <a accesskey="p">
|
---|
| 130 | <xsl:attribute name="href">
|
---|
| 131 | <xsl:call-template name="href.target">
|
---|
| 132 | <xsl:with-param name="object" select="$prev"/>
|
---|
| 133 | </xsl:call-template>
|
---|
| 134 | </xsl:attribute>
|
---|
[8df9f63] | 135 | <xsl:attribute name="title">
|
---|
| 136 | <xsl:value-of select="$prev/title"/>
|
---|
| 137 | </xsl:attribute>
|
---|
| 138 | <xsl:call-template name="navig.content">
|
---|
| 139 | <xsl:with-param name="direction" select="'prev'"/>
|
---|
| 140 | </xsl:call-template>
|
---|
[4238149] | 141 | </a>
|
---|
| 142 | </li>
|
---|
[ded6ddd] | 143 | </xsl:if>
|
---|
| 144 | <xsl:if test="count($next)>0">
|
---|
[4238149] | 145 | <li class="next">
|
---|
[ded6ddd] | 146 | <a accesskey="n">
|
---|
| 147 | <xsl:attribute name="href">
|
---|
| 148 | <xsl:call-template name="href.target">
|
---|
| 149 | <xsl:with-param name="object" select="$next"/>
|
---|
| 150 | </xsl:call-template>
|
---|
| 151 | </xsl:attribute>
|
---|
[8df9f63] | 152 | <xsl:attribute name="title">
|
---|
| 153 | <xsl:value-of select="$next/title"/>
|
---|
| 154 | </xsl:attribute>
|
---|
| 155 | <xsl:call-template name="navig.content">
|
---|
| 156 | <xsl:with-param name="direction" select="'next'"/>
|
---|
| 157 | </xsl:call-template>
|
---|
[4238149] | 158 | </a>
|
---|
| 159 | </li>
|
---|
[ded6ddd] | 160 | </xsl:if>
|
---|
| 161 | <xsl:if test="count($up)>0 and $up != $home">
|
---|
[4238149] | 162 | <li class="up">
|
---|
[ded6ddd] | 163 | <a accesskey="u">
|
---|
| 164 | <xsl:attribute name="href">
|
---|
| 165 | <xsl:call-template name="href.target">
|
---|
| 166 | <xsl:with-param name="object" select="$up"/>
|
---|
| 167 | </xsl:call-template>
|
---|
| 168 | </xsl:attribute>
|
---|
[8df9f63] | 169 | <xsl:attribute name="title">
|
---|
| 170 | <xsl:apply-templates select="$up" mode="object.title.markup"/>
|
---|
| 171 | </xsl:attribute>
|
---|
| 172 | <xsl:call-template name="navig.content">
|
---|
| 173 | <xsl:with-param name="direction" select="'up'"/>
|
---|
| 174 | </xsl:call-template>
|
---|
[4238149] | 175 | </a>
|
---|
| 176 | </li>
|
---|
[ded6ddd] | 177 | </xsl:if>
|
---|
[4238149] | 178 | <xsl:if test="$home != .">
|
---|
| 179 | <li class="home">
|
---|
| 180 | <a accesskey="h">
|
---|
| 181 | <xsl:attribute name="href">
|
---|
| 182 | <xsl:call-template name="href.target">
|
---|
| 183 | <xsl:with-param name="object" select="$home"/>
|
---|
| 184 | </xsl:call-template>
|
---|
| 185 | </xsl:attribute>
|
---|
[8df9f63] | 186 | <xsl:attribute name="title">
|
---|
| 187 | <xsl:value-of select="$home/bookinfo/title"/>
|
---|
| 188 | <xsl:text> - </xsl:text>
|
---|
| 189 | <xsl:value-of select="$home/bookinfo/subtitle"/>
|
---|
| 190 | </xsl:attribute>
|
---|
| 191 | <xsl:call-template name="navig.content">
|
---|
| 192 | <xsl:with-param name="direction" select="'home'"/>
|
---|
| 193 | </xsl:call-template>
|
---|
[4238149] | 194 | </a>
|
---|
| 195 | </li>
|
---|
| 196 | </xsl:if>
|
---|
| 197 | </ul>
|
---|
[ded6ddd] | 198 | </div>
|
---|
| 199 | </xsl:if>
|
---|
| 200 | </xsl:template>
|
---|
| 201 |
|
---|
| 202 | </xsl:stylesheet>
|
---|
[4238149] | 203 |
|
---|
| 204 |
|
---|