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 |
|
---|
16 | <!-- Header Navigation-->
|
---|
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">
|
---|
29 | <h4>
|
---|
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"/>
|
---|
33 | </h4>
|
---|
34 | <xsl:if test="$up != $home">
|
---|
35 | <h3>
|
---|
36 | <xsl:apply-templates select="$up" mode="object.title.markup"/>
|
---|
37 | </h3>
|
---|
38 | </xsl:if>
|
---|
39 | </div>
|
---|
40 | </xsl:if>
|
---|
41 | <ul class="headerlinks">
|
---|
42 | <xsl:if test="count($prev)>0 and $prev != $home">
|
---|
43 | <li class="prev">
|
---|
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>
|
---|
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>
|
---|
56 | </a>
|
---|
57 | </li>
|
---|
58 | </xsl:if>
|
---|
59 | <xsl:if test="count($next)>0">
|
---|
60 | <li class="next">
|
---|
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>
|
---|
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>
|
---|
73 | </a>
|
---|
74 | </li>
|
---|
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>
|
---|
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>
|
---|
90 | </a>
|
---|
91 | </li>
|
---|
92 | </xsl:if>
|
---|
93 | <li class="home">
|
---|
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>
|
---|
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>
|
---|
108 | </a>
|
---|
109 | </li>
|
---|
110 | </ul>
|
---|
111 | </div>
|
---|
112 | </xsl:if>
|
---|
113 | </xsl:template>
|
---|
114 |
|
---|
115 | <!-- Footer Navigation-->
|
---|
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">
|
---|
126 | <ul>
|
---|
127 | <xsl:if test="count($prev)>0 and $prev != $home">
|
---|
128 | <li class="prev">
|
---|
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>
|
---|
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>
|
---|
141 | </a>
|
---|
142 | </li>
|
---|
143 | </xsl:if>
|
---|
144 | <xsl:if test="count($next)>0">
|
---|
145 | <li class="next">
|
---|
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>
|
---|
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>
|
---|
158 | </a>
|
---|
159 | </li>
|
---|
160 | </xsl:if>
|
---|
161 | <xsl:if test="count($up)>0 and $up != $home">
|
---|
162 | <li class="up">
|
---|
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>
|
---|
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>
|
---|
175 | </a>
|
---|
176 | </li>
|
---|
177 | </xsl:if>
|
---|
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>
|
---|
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>
|
---|
194 | </a>
|
---|
195 | </li>
|
---|
196 | </xsl:if>
|
---|
197 | </ul>
|
---|
198 | </div>
|
---|
199 | </xsl:if>
|
---|
200 | </xsl:template>
|
---|
201 |
|
---|
202 | </xsl:stylesheet>
|
---|
203 |
|
---|
204 |
|
---|