170
|
1 <?xml version="1.0" encoding="utf-8"?>
|
|
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
|
3
|
|
4 <xsl:template name="body">
|
|
5 <xsl:param name="lang"/>
|
|
6
|
|
7 <xsl:variable name="MENU_ALIGN">
|
|
8 <xsl:choose>
|
|
9
|
|
10 <xsl:when test="$lang = 'he'">
|
|
11 <xsl:text>left</xsl:text>
|
|
12 </xsl:when>
|
|
13 <xsl:otherwise>
|
|
14 <xsl:text>right</xsl:text>
|
|
15 </xsl:otherwise>
|
|
16 </xsl:choose>
|
|
17 </xsl:variable>
|
|
18
|
|
19 <xsl:variable name="INDEX_ALIGN">
|
|
20 <xsl:choose>
|
|
21
|
|
22 <xsl:when test="$lang = 'he'">
|
|
23 <xsl:text>right</xsl:text>
|
|
24 </xsl:when>
|
|
25 <xsl:otherwise>
|
|
26 <xsl:text>left</xsl:text>
|
|
27 </xsl:otherwise>
|
|
28 </xsl:choose>
|
|
29 </xsl:variable>
|
|
30
|
|
31 <body>
|
|
32
|
|
33 <table width="100%">
|
|
34
|
|
35 <tr>
|
|
36
|
|
37 <td width="70%">
|
694
|
38
|
|
39 <div id="banner">
|
|
40
|
|
41 <xsl:if test="@lang = 'he'">
|
|
42 <xsl:attribute name="class">
|
|
43 <xsl:text>ltr</xsl:text>
|
|
44 </xsl:attribute>
|
|
45 </xsl:if>
|
|
46
|
|
47 <center>
|
|
48
|
|
49 <table>
|
|
50
|
|
51 <tr>
|
|
52
|
|
53 <td align="center">
|
|
54
|
1074
|
55 <strong>Looking to make your web app faster? Look no further!</strong>
|
694
|
56
|
|
57 </td>
|
|
58
|
|
59 </tr>
|
|
60
|
|
61 <tr>
|
|
62
|
|
63 <td align="center">
|
|
64
|
1074
|
65 <i>NGINX Plus for HTTP load balancing, caching and SSL offload —
|
|
66
|
|
67 <a href="http://nginx.com/products/">Free 30-Day Trial</a>.
|
|
68 </i>
|
694
|
69
|
|
70 </td>
|
|
71
|
|
72 </tr>
|
|
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%">
|
170
|
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
|
605
|
129 <xsl:if test="$ORIGIN and document(concat($XML, '/', $ORIGIN))/*/@rev and (not(@rev) or @rev != document(concat($XML, '/', $ORIGIN))/*/@rev)">
|
601
|
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
|
592
|
158 <xsl:if test="@toc = 'yes' and section[@id and @name]">
|
170
|
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
|
608
|
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
|
170
|
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
|
599
|
202 <xsl:if test="@author or @editor or @translator">
|
170
|
203
|
|
204 <table width="100%">
|
|
205 <tr>
|
|
206 <td align="right">
|
|
207
|
599
|
208 <xsl:if test="@author">
|
|
209
|
|
210 <xsl:value-of select="document(concat($XML, '/i18n.xml')) /i18n/text[@lang = $lang]/item[@id='author']"/>
|
170
|
211
|
599
|
212 <xsl:text> </xsl:text>
|
|
213 <xsl:value-of select="@author"/>
|
|
214 <br/>
|
|
215 </xsl:if>
|
170
|
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
|
722
|
248 </xsl:stylesheet>
|