comparison xslt/body.xslt @ 1085:c454373427ef

Regenerated.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 28 Feb 2014 20:12:47 +0400
parents 441a71c4e5ef
children d2a2fce38adf
comparison
equal deleted inserted replaced
1084:be1d72ba7e5f 1085:c454373427ef
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 Copyright (C) Igor Sysoev
4 Copyright (C) Nginx, Inc.
5 -->
6
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 7 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3 8
4 <xsl:template name="body"> 9 <xsl:template name="body"><xsl:param name="lang"/>
5 <xsl:param name="lang"/>
6 10
7 <xsl:variable name="MENU_ALIGN"> 11 <xsl:variable name="MENU_ALIGN">
8 <xsl:choose> 12 <xsl:choose><xsl:when test="$lang = 'he'"> <xsl:text>left</xsl:text> </xsl:when><xsl:otherwise> <xsl:text>right</xsl:text> </xsl:otherwise></xsl:choose>
13 </xsl:variable>
9 14
10 <xsl:when test="$lang = 'he'"> 15 <xsl:variable name="INDEX_ALIGN">
11 <xsl:text>left</xsl:text> 16 <xsl:choose><xsl:when test="$lang = 'he'"> <xsl:text>right</xsl:text> </xsl:when><xsl:otherwise> <xsl:text>left</xsl:text> </xsl:otherwise></xsl:choose>
12 </xsl:when> 17 </xsl:variable>
13 <xsl:otherwise>
14 <xsl:text>right</xsl:text>
15 </xsl:otherwise>
16 </xsl:choose>
17 </xsl:variable>
18 18
19 <xsl:variable name="INDEX_ALIGN"> 19 <body>
20 <xsl:choose> 20 <table width="100%">
21 <tr>
22 <td width="70%">
23 <div id="banner">
24 <xsl:if test="@lang = 'he'"> <xsl:attribute name="class"> <xsl:text>ltr</xsl:text> </xsl:attribute> </xsl:if>
25 <center>
26 <table>
27 <tr>
28 <td align="center">
29 <strong>Looking to make your web app faster? Look no further!</strong>
30 </td>
31 </tr>
32 <tr>
33 <td align="center">
34 <i>NGINX Plus for HTTP load balancing, caching and SSL offload &#8212;
35 <a href="http://nginx.com/products/">Free 30-Day Trial</a>.</i>
36 </td>
37 </tr>
38 </table>
39 </center>
40 </div>
41 </td>
42 <td align="right">
43 <xsl:if test="@lang = 'he'"> <xsl:attribute name="align"> <xsl:text>left</xsl:text> </xsl:attribute> </xsl:if>
44 <a href="http://nginx.org">
45 <img src="http://nginx.org/nginx.gif" alt="nginx" border="0"/>
46 </a>
47 </td>
48 </tr>
21 49
22 <xsl:when test="$lang = 'he'"> 50 <tr>
23 <xsl:text>right</xsl:text> 51 <td width="70%"><center><h3>
24 </xsl:when> 52 <xsl:value-of select="@name"/> <xsl:if test="$YEAR"> <xsl:text>: </xsl:text> <xsl:value-of select="$YEAR"/> </xsl:if>
25 <xsl:otherwise> 53 </h3></center></td>
26 <xsl:text>left</xsl:text>
27 </xsl:otherwise>
28 </xsl:choose>
29 </xsl:variable>
30 54
31 <body> 55 <td rowspan="2" align="{$MENU_ALIGN}" valign="top">
56 <br/>
32 57
33 <table width="100%"> 58 <xsl:apply-templates select="document(concat($XML, '/menu.xml'))
59 /menus/menu[@lang = $lang]/item"/>
60 </td>
34 61
35 <tr> 62 </tr>
36 63
37 <td width="70%"> 64 <tr><td valign="top">
38 65
39 <div id="banner"> 66 <xsl:if test="$ORIGIN and document(concat($XML, '/', $ORIGIN))/*/@rev and
67 (not(@rev) or
68 @rev != document(concat($XML, '/', $ORIGIN))/*/@rev)">
69 <span>
40 70
41 <xsl:if test="@lang = 'he'"> 71 <xsl:if test="@lang = 'he'"> <xsl:attribute name="class"> <xsl:text>ltr</xsl:text> </xsl:attribute> </xsl:if>
42 <xsl:attribute name="class">
43 <xsl:text>ltr</xsl:text>
44 </xsl:attribute>
45 </xsl:if>
46 72
47 <center> 73 <blockquote class="note">
48 74
49 <table> 75 <xsl:choose><xsl:when test="document(concat($XML, '/i18n.xml'))
76 /i18n/text[@lang = $lang]/item[@id='outdated']">
77 <xsl:apply-templates select="document(concat($XML, '/i18n.xml'))
78 /i18n/text[@lang = $lang]/item[@id='outdated']"/>
79 </xsl:when><xsl:otherwise>
80 <xsl:apply-templates select="document(concat($XML, '/i18n.xml'))
81 /i18n/text[@lang = 'en']/item[@id='outdated']"/>
82 </xsl:otherwise></xsl:choose>
50 83
51 <tr> 84 </blockquote>
85 </span>
86 </xsl:if>
52 87
53 <td align="center"> 88 <xsl:if test="@toc = 'yes' and section[@id and @name]">
89 <table width="100%"><tr><td align="{$INDEX_ALIGN}">
90 <xsl:for-each select="section[@id and @name]">
91 <a href="#{@id}"> <xsl:value-of select="@name"/> </a><br/>
92 <xsl:for-each select="section[@id and @name]">
93 <xsl:text>&#160;&#160;&#160;&#160;&#160;</xsl:text>
94 <a href="#{@id}"> <xsl:value-of select="@name"/> </a><br/>
95 </xsl:for-each>
96 <xsl:if test="@id = 'directives'">
97 <xsl:for-each select="directive[@name]">
98 <xsl:text>&#160;&#160;&#160;&#160;&#160;</xsl:text>
99 <a href="#{@name}"> <xsl:value-of select="@name"/> </a><br/>
100 </xsl:for-each>
101 </xsl:if>
102 </xsl:for-each>
103 </td></tr></table>
104 </xsl:if>
54 105
55 <strong>Looking to make your web app faster? Look no further!</strong> 106 <xsl:apply-templates/>
56 107
57 </td> 108 <xsl:if test="@author or @editor or @translator">
109 <table width="100%"><tr><td align="right">
58 110
59 </tr> 111 <xsl:if test="@author">
112 <xsl:value-of select="document(concat($XML, '/i18n.xml'))
113 /i18n/text[@lang = $lang]/item[@id='author']"/>
114 <xsl:text> </xsl:text> <xsl:value-of select="@author"/> <br/>
115 </xsl:if>
60 116
61 <tr> 117 <xsl:if test="@editor">
118 <xsl:value-of select="document(concat($XML, '/i18n.xml'))
119 /i18n/text[@lang = $lang]/item[@id='editor']"/>
120 <xsl:text> </xsl:text> <xsl:value-of select="@editor"/> <br/>
121 </xsl:if>
62 122
63 <td align="center"> 123 <xsl:if test="@translator">
124 <xsl:value-of select="document(concat($XML, '/i18n.xml'))
125 /i18n/text[@lang = $lang]/item[@id='translator']"/>
126 <xsl:text> </xsl:text> <xsl:value-of select="@translator"/> <br/>
127 </xsl:if>
64 128
65 <i>NGINX Plus for HTTP load balancing, caching and SSL offload — 129 </td></tr></table>
130 </xsl:if>
66 131
67 <a href="http://nginx.com/products/">Free 30-Day Trial</a>. 132 </td></tr>
68 </i>
69 133
70 </td> 134 </table>
135 </body>
71 136
72 </tr> 137 </xsl:template>
73
74 </table>
75
76 </center>
77
78 </div>
79
80 </td>
81
82 <td align="right">
83
84 <xsl:if test="@lang = 'he'">
85 <xsl:attribute name="align">
86 <xsl:text>left</xsl:text>
87 </xsl:attribute>
88 </xsl:if>
89
90 <a href="http://nginx.org">
91
92 <img src="http://nginx.org/nginx.gif" alt="nginx" border="0"/>
93
94 </a>
95
96 </td>
97
98 </tr>
99
100 <tr>
101
102 <td width="70%">
103 <center>
104 <h3>
105
106 <xsl:value-of select="@name"/>
107 <xsl:if test="$YEAR">
108 <xsl:text>: </xsl:text>
109 <xsl:value-of select="$YEAR"/>
110 </xsl:if>
111
112 </h3>
113 </center>
114 </td>
115
116 <td rowspan="2" align="{$MENU_ALIGN}" valign="top">
117
118 <br/>
119
120 <xsl:apply-templates select="document(concat($XML, '/menu.xml')) /menus/menu[@lang = $lang]/item"/>
121
122 </td>
123
124 </tr>
125
126 <tr>
127 <td valign="top">
128
129 <xsl:if test="$ORIGIN and document(concat($XML, '/', $ORIGIN))/*/@rev and (not(@rev) or @rev != document(concat($XML, '/', $ORIGIN))/*/@rev)">
130
131 <span>
132
133 <xsl:if test="@lang = 'he'">
134 <xsl:attribute name="class">
135 <xsl:text>ltr</xsl:text>
136 </xsl:attribute>
137 </xsl:if>
138
139 <blockquote class="note">
140 <xsl:choose>
141
142 <xsl:when test="document(concat($XML, '/i18n.xml')) /i18n/text[@lang = $lang]/item[@id='outdated']">
143
144 <xsl:apply-templates select="document(concat($XML, '/i18n.xml')) /i18n/text[@lang = $lang]/item[@id='outdated']"/>
145 </xsl:when>
146
147 <xsl:otherwise>
148
149 <xsl:apply-templates select="document(concat($XML, '/i18n.xml')) /i18n/text[@lang = 'en']/item[@id='outdated']"/>
150 </xsl:otherwise>
151 </xsl:choose>
152
153 </blockquote>
154
155 </span>
156 </xsl:if>
157
158 <xsl:if test="@toc = 'yes' and section[@id and @name]">
159
160 <table width="100%">
161 <tr>
162 <td align="{$INDEX_ALIGN}">
163
164 <xsl:for-each select="section[@id and @name]">
165
166 <a href="#{@id}">
167 <xsl:value-of select="@name"/>
168 </a>
169 <br/>
170
171 <xsl:for-each select="section[@id and @name]">
172
173 <xsl:text>     </xsl:text>
174
175 <a href="#{@id}">
176 <xsl:value-of select="@name"/>
177 </a>
178 <br/>
179 </xsl:for-each>
180
181 <xsl:if test="@id = 'directives'">
182
183 <xsl:for-each select="directive[@name]">
184
185 <xsl:text>     </xsl:text>
186
187 <a href="#{@name}">
188 <xsl:value-of select="@name"/>
189 </a>
190 <br/>
191 </xsl:for-each>
192 </xsl:if>
193 </xsl:for-each>
194
195 </td>
196 </tr>
197 </table>
198 </xsl:if>
199
200 <xsl:apply-templates/>
201
202 <xsl:if test="@author or @editor or @translator">
203
204 <table width="100%">
205 <tr>
206 <td align="right">
207
208 <xsl:if test="@author">
209
210 <xsl:value-of select="document(concat($XML, '/i18n.xml')) /i18n/text[@lang = $lang]/item[@id='author']"/>
211
212 <xsl:text> </xsl:text>
213 <xsl:value-of select="@author"/>
214 <br/>
215 </xsl:if>
216
217 <xsl:if test="@editor">
218
219 <xsl:value-of select="document(concat($XML, '/i18n.xml')) /i18n/text[@lang = $lang]/item[@id='editor']"/>
220
221 <xsl:text> </xsl:text>
222 <xsl:value-of select="@editor"/>
223 <br/>
224 </xsl:if>
225
226 <xsl:if test="@translator">
227
228 <xsl:value-of select="document(concat($XML, '/i18n.xml')) /i18n/text[@lang = $lang]/item[@id='translator']"/>
229
230 <xsl:text> </xsl:text>
231 <xsl:value-of select="@translator"/>
232 <br/>
233 </xsl:if>
234
235 </td>
236 </tr>
237 </table>
238 </xsl:if>
239
240 </td>
241 </tr>
242
243 </table>
244
245 </body>
246 </xsl:template>
247 138
248 </xsl:stylesheet> 139 </xsl:stylesheet>