~littlergirl/kubuntu-docs/network

« back to all changes in this revision

Viewing changes to libs/kubuntu-navig-online.xsl

  • Committer: Richard A. Johnson
  • Date: 2011-04-17 01:06:26 UTC
  • Revision ID: nixternal@ubuntu.com-20110417010626-0deknai8yz1wkjpf
 * Fixed spelling of kubuntu-nochunk.xsl file - follow upstream KDE
 * Updated Makefile for the above spelling fix
 * Updated all of the xsl files to properly build - follow upstream KDE with
   minor changes for Kubuntu specific documentation
 * Commented out an xref in desktop.xml that was causing a build failure

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<!DOCTYPE xsl:stylesheet [
3
 
<!ENTITY % globalent SYSTEM "global.ent">
4
 
%globalent;
5
 
]>
6
1
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7
2
  version="1.0">
8
 
  
 
3
 
 
4
<!-- only for the online version -->
 
5
<!-- obfuscate email addresses -->
9
6
  <xsl:template match="email">
10
7
    <xsl:call-template name="inline.monoseq">
11
8
      <xsl:with-param name="content">
13
10
        <xsl:call-template name="replaceCharsInString">
14
11
          <xsl:with-param name="stringIn" select="."/>
15
12
          <xsl:with-param name="charsIn" select="'@'"/>
16
 
          <xsl:with-param name="charsOut" select="' AT '"/>
 
13
          <xsl:with-param name="charsOut" select="'  '"/>
17
14
        </xsl:call-template>
18
15
        <xsl:text>)</xsl:text>
19
16
      </xsl:with-param>
37
34
      </xsl:otherwise>
38
35
    </xsl:choose>
39
36
  </xsl:template>
40
 
  
41
 
  
 
37
<!-- end "only for the online version" -->
 
38
 
42
39
  <xsl:template name="header.navigation">
43
40
    <xsl:param name="prev" select="/foo"/>
44
41
    <xsl:param name="next" select="/foo"/>
45
42
    <xsl:variable name="home" select="/*[1]"/>
46
43
    <xsl:variable name="up" select="parent::*"/>
47
44
    <xsl:if test="$suppress.navigation = '0'">
48
 
      <div style="position: absolute; left 0px;">
49
 
        <img src="{$kde.common}top-left.png" style="margin: 0px" alt="" />
 
45
      <div id="header">
 
46
        <div id="header_content">
 
47
          <div id="header_left">
 
48
            <div id="header_right">
 
49
              <img src="{$kde.common}top-kde.jpg" width="36" height="34" />
 
50
              <!-- The space is for spacing between the logo and title text -->
 
51
              <xsl:text> </xsl:text>
 
52
              <xsl:apply-templates
 
53
                select="." mode="title.markup"/>
 
54
            </div>
 
55
          </div>
 
56
        </div>
50
57
      </div>
51
 
      <div style="background-image: url({$kde.common}top-middle.png); width: 100%; height: 131px;">
52
 
        <div style="position: absolute; 
53
 
                    right: 0px;">
54
 
          <img src="{$kde.common}top-right.png"
55
 
            style="margin: 0px" alt="" />
56
 
          </div>
57
 
            <div style="position: absolute;
58
 
                        top: 63px;
59
 
                        right: 0px;
60
 
                        margin-top: -1em;
61
 
                        margin-right: 5%;
62
 
                        text-align: right; 
63
 
                        font-size: xx-large; 
64
 
                        font-weight: bold; 
65
 
                        text-shadow: #CDE1FF 0px 0px 5px; 
66
 
                        color: #444">
67
 
              <xsl:apply-templates select="." mode="title.markup"/>
68
 
            </div>
69
 
          </div>
70
 
          
71
 
          <div style="margin-top: 20px; background-color: #white; 
72
 
                      color: black;
73
 
                      margin-left: 20px; 
74
 
                      margin-right: 20px;">
75
 
            <div style="position: absolute; 
76
 
                        left: 20px;">
 
58
 
 
59
      <!-- output navigation links -->
 
60
      <div class="navCenter">
 
61
        <table class="navigation">
 
62
          <tr>
 
63
            <td class="prevCell">
77
64
              <xsl:if test="count($prev)>0">
78
65
                <a accesskey="p">
79
66
                  <xsl:attribute name="href">
84
71
                  <xsl:call-template name="gentext.nav.prev"/>
85
72
                </a>
86
73
              </xsl:if>
87
 
            </div>
88
 
            <div style="position: absolute; 
89
 
                        right: 20px;">
90
 
              <xsl:if test="count($next)>0">
91
 
                <a accesskey="n">
92
 
                  <xsl:attribute name="href">
93
 
                    <xsl:call-template name="href.target">
94
 
                      <xsl:with-param name="object" select="$next"/>
95
 
                    </xsl:call-template>
96
 
                  </xsl:attribute>
97
 
                  <xsl:call-template name="gentext.nav.next"/>
98
 
                </a>
99
 
              </xsl:if>
100
 
            </div>
101
 
            <div class="navCenter">
 
74
            </td>
 
75
            <td class="upCell">
102
76
              <xsl:choose>
103
77
                <xsl:when test="count($up) > 0 and $up != $home">
104
78
                  <xsl:apply-templates select="$up" mode="title.markup"/>
105
79
                </xsl:when>
106
80
                <xsl:otherwise>&#160;</xsl:otherwise>
107
81
              </xsl:choose>
108
 
            </div>
109
 
          </div>
110
 
          
111
 
        </xsl:if>
112
 
      </xsl:template>
 
82
            </td>
 
83
            <td class="nextCell">
 
84
              <xsl:if test="count($next)>0">
 
85
                <a accesskey="n">
 
86
                  <xsl:attribute name="href">
 
87
                    <xsl:call-template name="href.target">
 
88
                      <xsl:with-param name="object" select="$next"/>
 
89
                    </xsl:call-template>
 
90
                  </xsl:attribute>
 
91
                  <xsl:call-template name="gentext.nav.next"/>
 
92
                </a>
 
93
              </xsl:if>
 
94
            </td>
 
95
          </tr>
 
96
        </table>
 
97
      </div>
 
98
    </xsl:if>
 
99
  </xsl:template>
113
100
 
114
101
<!-- ==================================================================== -->
115
102
 
120
107
  <xsl:variable name="up" select="parent::*"/>
121
108
 
122
109
  <xsl:if test="$suppress.navigation = '0'">
123
 
 
124
 
    <div style="background-color: #white; color: black; 
125
 
                margin-top: 20px; margin-left: 20px; 
126
 
                margin-right: 20px;">
127
 
      <div style="position: absolute; left: 20px;">
128
 
<xsl:if test="count($prev)>0">
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:call-template name="gentext.nav.prev"/>
136
 
              </a>
137
 
            </xsl:if>
138
 
          </div>
139
 
          <div style="position: absolute; right: 20px;">
140
 
            <xsl:if test="count($next)>0">
141
 
              <a accesskey="n">
142
 
                <xsl:attribute name="href">
143
 
                  <xsl:call-template name="href.target">
144
 
                    <xsl:with-param name="object" select="$next"/>
145
 
                  </xsl:call-template>
146
 
                </xsl:attribute>
147
 
                <xsl:call-template name="gentext.nav.next"/>
148
 
              </a>
149
 
            </xsl:if>
150
 
          </div>
151
 
          <div align="center">
152
 
            <xsl:choose>
153
 
              <xsl:when test="$home != .">
154
 
                <a accesskey="h">
155
 
                  <xsl:attribute name="href">
156
 
                    <xsl:call-template name="href.target">
157
 
                      <xsl:with-param name="object" select="$home"/>
158
 
                    </xsl:call-template>
159
 
                  </xsl:attribute>
160
 
                  <xsl:call-template name="gentext.nav.home"/>
161
 
                </a>
162
 
              </xsl:when>
163
 
              <xsl:otherwise>&#160;</xsl:otherwise>
164
 
            </xsl:choose>
165
 
          </div>
166
 
        </div>
167
 
    <div style="background-color: #white; 
168
 
        color: black;
169
 
        margin-left: 20px; 
170
 
        margin-right: 20px;">
171
 
      <div class="navLeft">
172
 
        <xsl:apply-templates select="$prev" mode="title.markup"/>
173
 
        <xsl:text>&#160;</xsl:text>
174
 
      </div>
175
 
      <div class="navRight">
176
 
        <xsl:text>&#160;</xsl:text>
177
 
        <xsl:apply-templates select="$next" mode="title.markup"/>
178
 
      </div>
 
110
    <div id="footer">
 
111
      <!-- output navigation links -->
179
112
      <div class="navCenter">
180
 
            <xsl:choose>
181
 
              <xsl:when test="count($up)>0">
182
 
                <a accesskey="u">
183
 
                  <xsl:attribute name="href">
184
 
                    <xsl:call-template name="href.target">
185
 
                      <xsl:with-param name="object" select="$up"/>
186
 
                    </xsl:call-template>
187
 
                  </xsl:attribute>
188
 
                  <xsl:call-template name="gentext.nav.up"/>
189
 
                </a>
190
 
              </xsl:when>
191
 
              <xsl:otherwise>&#160;</xsl:otherwise>
192
 
            </xsl:choose>
193
 
          </div>
194
 
          
195
 
          
196
 
          
197
 
      </div>
198
 
      <br/>
199
 
      <br/>
200
 
 
201
 
      <div class="bannerBottom" style="background-image: url({$kde.common}bottom-middle.png);
202
 
                                       background-repeat: x-repeat; 
203
 
                                       width: 100%; 
204
 
                                       height: 70px; 
205
 
                                       bottom:0px;">
206
 
        
207
 
        <div class="BannerBottomRight">
208
 
          <img src="{$kde.common}bottom-right.png" style="height: 70px; margin: 0px" alt=""/>
209
 
        </div>
210
 
        <div class="bannerBottomLeft">
211
 
          <img src="{$kde.common}bottom-left.png" style="height: 70px; margin: 0px;" alt=""/>
212
 
        </div>
213
 
        <div id="comments" style="position:relative; top: 15px; left: 1em; width: 100%; color: #282828;">
214
 
        <p>
215
 
        <xsl:call-template name="gentext.footer-doc-comment"/>
216
 
        <br/>
217
 
        <xsl:call-template name="gentext.footer-doc-feedback"/>
218
 
        <a href="mailto:ubuntu-docs@lists.ubuntu.com" style="background:transparent; color: #282828; text-decoration: underline;">
219
 
<!--        <xsl:call-template name="gentext.footer-doc-teamname"/> -->
220
 
        &project-name;
221
 
        </a></p>
222
 
        </div>
223
 
 
224
 
      </div>
225
 
 
 
113
        <table class="navigation">
 
114
          <tr>
 
115
            <td class="prevCell">
 
116
              <xsl:if test="count($prev)>0">
 
117
                <a accesskey="p">
 
118
                  <xsl:attribute name="href">
 
119
                    <xsl:call-template name="href.target">
 
120
                      <xsl:with-param name="object" select="$prev"/>
 
121
                    </xsl:call-template>
 
122
                  </xsl:attribute>
 
123
                  <xsl:call-template name="gentext.nav.prev"/>
 
124
                </a>
 
125
              </xsl:if>
 
126
            </td>
 
127
            <td class="upCell">
 
128
              <xsl:choose>
 
129
                <xsl:when test="$home != .">
 
130
                  <a accesskey="h">
 
131
                    <xsl:attribute name="href">
 
132
                      <xsl:call-template name="href.target">
 
133
                        <xsl:with-param name="object" select="$home"/>
 
134
                      </xsl:call-template>
 
135
                    </xsl:attribute>
 
136
                    <xsl:call-template name="gentext.nav.home"/>
 
137
                  </a>
 
138
                </xsl:when>
 
139
                <xsl:otherwise>&#160;</xsl:otherwise>
 
140
              </xsl:choose>
 
141
            </td>
 
142
            <td class="nextCell">
 
143
              <xsl:if test="count($next)>0">
 
144
                <a accesskey="n">
 
145
                  <xsl:attribute name="href">
 
146
                    <xsl:call-template name="href.target">
 
147
                      <xsl:with-param name="object" select="$next"/>
 
148
                    </xsl:call-template>
 
149
                  </xsl:attribute>
 
150
                  <xsl:call-template name="gentext.nav.next"/>
 
151
                </a>
 
152
              </xsl:if>
 
153
            </td>
 
154
          </tr>
 
155
          <tr>
 
156
            <td class="prevCell">
 
157
              <xsl:apply-templates select="$prev" mode="title.markup"/>
 
158
              <xsl:text>&#160;</xsl:text>
 
159
            </td>
 
160
            <td class="upCell">
 
161
              <xsl:choose>
 
162
                <xsl:when test="count($up) > 0 and $up != $home">
 
163
                  <xsl:apply-templates select="$up" mode="title.markup"/>
 
164
                </xsl:when>
 
165
                <xsl:otherwise>&#160;</xsl:otherwise>
 
166
              </xsl:choose>
 
167
            </td>
 
168
            <td class="nextCell">
 
169
              <xsl:text>&#160;</xsl:text>
 
170
              <xsl:apply-templates select="$next" mode="title.markup"/>
 
171
            </td>
 
172
          </tr>
 
173
        </table>
 
174
      </div>
 
175
    </div>
226
176
  </xsl:if>
227
177
</xsl:template>
228
178