~ubuntu-branches/ubuntu/maverick/kubuntu-docs/maverick

« back to all changes in this revision

Viewing changes to kubuntu/libs/kubuntu-web.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Richard A. Johnson
  • Date: 2008-08-18 10:49:14 UTC
  • Revision ID: james.westby@ubuntu.com-20080818104914-83r2er2hsmdp2o0l
Tags: 8.10-2
* Restructured kubuntu documentation package
  - Refer to the NEWS text located in the root directory of the package
* Removed the Firefox start page files
* debian/rules: updated to remove firefox files
* debian/control: removed perl deps due to removal of firefox files, bumped
  version to 3.8.0, updated kdelibs-data dep to kdelibs5-data

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2
 
  version="1.0">
3
 
  
4
 
    <!-- Imports -->
5
 
        <xsl:import href="kubuntu-chunk.xsl"/>          
6
 
 
7
 
  <xsl:template match="email">
8
 
    <xsl:call-template name="inline.monoseq">
9
 
      <xsl:with-param name="content">
10
 
        <xsl:text>(</xsl:text>
11
 
        <xsl:call-template name="replaceCharsInString">
12
 
          <xsl:with-param name="stringIn" select="."/>
13
 
          <xsl:with-param name="charsIn" select="'@'"/>
14
 
          <xsl:with-param name="charsOut" select="' AT '"/>
15
 
        </xsl:call-template>
16
 
        <xsl:text>)</xsl:text>
17
 
      </xsl:with-param>
18
 
    </xsl:call-template>
19
 
  </xsl:template>
20
 
  <xsl:template name="replaceCharsInString">
21
 
    <xsl:param name="stringIn"/>
22
 
    <xsl:param name="charsIn"/>
23
 
    <xsl:param name="charsOut"/>
24
 
    <xsl:choose>
25
 
      <xsl:when test="contains($stringIn,$charsIn)">
26
 
        <xsl:value-of select="concat(substring-before($stringIn,$charsIn),$charsOut)"/>
27
 
        <xsl:call-template name="replaceCharsInString">
28
 
          <xsl:with-param name="stringIn" select="substring-after($stringIn,$charsIn)"/>
29
 
          <xsl:with-param name="charsIn" select="$charsIn"/>
30
 
          <xsl:with-param name="charsOut" select="$charsOut"/>
31
 
        </xsl:call-template>
32
 
      </xsl:when>
33
 
      <xsl:otherwise>
34
 
        <xsl:value-of select="$stringIn"/>
35
 
      </xsl:otherwise>
36
 
    </xsl:choose>
37
 
  </xsl:template>
38
 
  
39
 
  
40
 
  <xsl:template name="header.navigation">
41
 
    <xsl:param name="prev" select="/foo"/>
42
 
    <xsl:param name="next" select="/foo"/>
43
 
    <xsl:variable name="home" select="/*[1]"/>
44
 
    <xsl:variable name="up" select="parent::*"/>
45
 
    <xsl:if test="$suppress.navigation = '0'">
46
 
      <div style="background-image: url(../../common/top-middle.png); width: 100%; height: 131px;">
47
 
        <div style="position: absolute; 
48
 
                    right: 0px;">
49
 
          <img src="../../common/top-right-konqueror.png"
50
 
            style="margin: 0px" alt="" />
51
 
      <div id="sisternav">
52
 
        <ul>
53
 
          <li id="plain">
54
 
            <a href="/5.10">5.10</a>
55
 
          </li>
56
 
          <li id="plain">
57
 
            <a href="/6.06">6.06 LTS</a>
58
 
          </li>
59
 
          <li id="current">
60
 
            <a href="/6.10">6.10</a>
61
 
          </li>
62
 
          <li id="plain">
63
 
            <a href="/community">Community Docs</a>
64
 
          </li>
65
 
          </ul>
66
 
        </div>
67
 
          </div>
68
 
          <div style="position: absolute; left: 0px;">
69
 
            <img src="../../common/top-left.png" style="margin: 0px" alt="" />
70
 
            </div>
71
 
 
72
 
 
73
 
 
74
 
            <div style="position: absolute;
75
 
                        top: 25px; 
76
 
                        right: 100px; 
77
 
                        text-align: right; 
78
 
                        font-size: xx-large; 
79
 
                        font-weight: bold; 
80
 
                        text-shadow: #fff 0px 0px 5px; 
81
 
                        color: #444">
82
 
              <xsl:apply-templates select="." mode="title.markup"/>
83
 
            </div>
84
 
          </div>
85
 
          
86
 
          <div style="margin-top: 20px; background-color: #white; 
87
 
                      color: black;
88
 
                      margin-left: 20px; 
89
 
                      margin-right: 20px;">
90
 
            <div style="position: absolute; 
91
 
                        left: 20px;">
92
 
              <xsl:if test="count($prev)>0">
93
 
                <a accesskey="p">
94
 
                  <xsl:attribute name="href">
95
 
                    <xsl:call-template name="href.target">
96
 
                      <xsl:with-param name="object" select="$prev"/>
97
 
                    </xsl:call-template>
98
 
                  </xsl:attribute>
99
 
                  <xsl:call-template name="gentext.nav.prev"/>
100
 
                </a>
101
 
              </xsl:if>
102
 
            </div>
103
 
            <div style="position: absolute; 
104
 
                        right: 20px;">
105
 
              <xsl:if test="count($next)>0">
106
 
                <a accesskey="n">
107
 
                  <xsl:attribute name="href">
108
 
                    <xsl:call-template name="href.target">
109
 
                      <xsl:with-param name="object" select="$next"/>
110
 
                    </xsl:call-template>
111
 
                  </xsl:attribute>
112
 
                  <xsl:call-template name="gentext.nav.next"/>
113
 
                </a>
114
 
              </xsl:if>
115
 
            </div>
116
 
            <div class="navCenter">
117
 
              <xsl:choose>
118
 
                <xsl:when test="count($up) > 0 and $up != $home">
119
 
                  <xsl:apply-templates select="$up" mode="title.markup"/>
120
 
                </xsl:when>
121
 
                <xsl:otherwise>&#160;</xsl:otherwise>
122
 
              </xsl:choose>
123
 
            </div>
124
 
          </div>
125
 
          
126
 
        </xsl:if>
127
 
      </xsl:template>
128
 
 
129
 
<!-- ==================================================================== -->
130
 
 
131
 
<xsl:template name="footer.navigation">
132
 
  <xsl:param name="prev" select="/foo"/>
133
 
  <xsl:param name="next" select="/foo"/>
134
 
  <xsl:variable name="home" select="/*[1]"/>
135
 
  <xsl:variable name="up" select="parent::*"/>
136
 
 
137
 
  <xsl:if test="$suppress.navigation = '0'">
138
 
 
139
 
    <div style="background-color: #white; color: black; 
140
 
                margin-top: 20px; margin-left: 20px; 
141
 
                margin-right: 20px;">
142
 
      <div style="position: absolute; left: 20px;">
143
 
<xsl:if test="count($prev)>0">
144
 
              <a accesskey="p">
145
 
                <xsl:attribute name="href">
146
 
                  <xsl:call-template name="href.target">
147
 
                    <xsl:with-param name="object" select="$prev"/>
148
 
                  </xsl:call-template>
149
 
                </xsl:attribute>
150
 
                <xsl:call-template name="gentext.nav.prev"/>
151
 
              </a>
152
 
            </xsl:if>
153
 
          </div>
154
 
          <div style="position: absolute; right: 20px;">
155
 
            <xsl:if test="count($next)>0">
156
 
              <a accesskey="n">
157
 
                <xsl:attribute name="href">
158
 
                  <xsl:call-template name="href.target">
159
 
                    <xsl:with-param name="object" select="$next"/>
160
 
                  </xsl:call-template>
161
 
                </xsl:attribute>
162
 
                <xsl:call-template name="gentext.nav.next"/>
163
 
              </a>
164
 
            </xsl:if>
165
 
          </div>
166
 
          <div align="center">
167
 
            <xsl:choose>
168
 
              <xsl:when test="$home != .">
169
 
                <a accesskey="h">
170
 
                  <xsl:attribute name="href">
171
 
                    <xsl:call-template name="href.target">
172
 
                      <xsl:with-param name="object" select="$home"/>
173
 
                    </xsl:call-template>
174
 
                  </xsl:attribute>
175
 
                  <xsl:call-template name="gentext.nav.home"/>
176
 
                </a>
177
 
              </xsl:when>
178
 
              <xsl:otherwise>&#160;</xsl:otherwise>
179
 
            </xsl:choose>
180
 
          </div>
181
 
        </div>
182
 
    <div style="background-color: #white; 
183
 
        color: black;
184
 
        margin-left: 20px; 
185
 
        margin-right: 20px;">
186
 
      <div class="navLeft">
187
 
        <xsl:apply-templates select="$prev" mode="title.markup"/>
188
 
        <xsl:text>&#160;</xsl:text>
189
 
      </div>
190
 
      <div class="navRight">
191
 
        <xsl:text>&#160;</xsl:text>
192
 
        <xsl:apply-templates select="$next" mode="title.markup"/>
193
 
      </div>
194
 
      <div class="navCenter">
195
 
            <xsl:choose>
196
 
              <xsl:when test="count($up)>0">
197
 
                <a accesskey="u">
198
 
                  <xsl:attribute name="href">
199
 
                    <xsl:call-template name="href.target">
200
 
                      <xsl:with-param name="object" select="$up"/>
201
 
                    </xsl:call-template>
202
 
                  </xsl:attribute>
203
 
                  <xsl:call-template name="gentext.nav.up"/>
204
 
                </a>
205
 
              </xsl:when>
206
 
              <xsl:otherwise>&#160;</xsl:otherwise>
207
 
            </xsl:choose>
208
 
          </div>
209
 
          
210
 
          
211
 
          
212
 
      </div>
213
 
      <br/>
214
 
      <br/>
215
 
    
216
 
      <div class="bannerBottom" style="background-image: url(../../common/bottom-middle.png);
217
 
                                       background-repeat: x-repeat; 
218
 
                                       width: 100%; 
219
 
                                       height: 100px; 
220
 
                                       bottom:0px;">
221
 
        <div class="BannerBottomRight">
222
 
          <img src="../../common/bottom-right.png" style="margin: 0px" alt=""/>
223
 
        </div>
224
 
        <div class="bannerBottomLeft">
225
 
          <img src="../../common/bottom-left.png" style="margin: 0px;" alt=""/>
226
 
        </div>
227
 
      </div>
228
 
 
229
 
  </xsl:if>
230
 
</xsl:template>
231
 
 
232
 
</xsl:stylesheet>