Mercurial > hg > nginx-site
comparison xslt/content.xslt @ 170:cd2698ea00ab
Added generated XSLTs.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 02 Nov 2011 19:31:11 +0000 |
parents | |
children | 5d87f76cdfab |
comparison
equal
deleted
inserted
replaced
169:b7b160e4e046 | 170:cd2698ea00ab |
---|---|
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 match="section[@id and @name]"> | |
5 | |
6 <a name="{@id}"/> | |
7 <center> | |
8 <h4> | |
9 <xsl:value-of select="@name"/> | |
10 </h4> | |
11 </center> | |
12 | |
13 <xsl:apply-templates/> | |
14 </xsl:template> | |
15 | |
16 <xsl:template match="section[@id and not(@name)]"> | |
17 | |
18 <a name="{@id}"/> | |
19 | |
20 <xsl:apply-templates/> | |
21 </xsl:template> | |
22 | |
23 <xsl:template match="section[not(@id) and @name]"> | |
24 | |
25 <center> | |
26 <h4> | |
27 <xsl:value-of select="@name"/> | |
28 </h4> | |
29 </center> | |
30 | |
31 <xsl:apply-templates/> | |
32 </xsl:template> | |
33 | |
34 <xsl:template match="para"> | |
35 <p> | |
36 <xsl:apply-templates/> | |
37 </p> | |
38 </xsl:template> | |
39 | |
40 <xsl:template match="para[@align]"> | |
41 <p align="{@align}"> | |
42 <xsl:apply-templates/> | |
43 </p> | |
44 </xsl:template> | |
45 | |
46 <xsl:template match="initial"> | |
47 <span class="initial"> | |
48 <b> | |
49 <xsl:apply-templates/> | |
50 </b> | |
51 </span> | |
52 </xsl:template> | |
53 | |
54 <xsl:template match="programlisting"> | |
55 <blockquote> | |
56 <pre> | |
57 <xsl:apply-templates/> | |
58 </pre> | |
59 </blockquote> | |
60 </xsl:template> | |
61 | |
62 <xsl:template match="para/programlisting"> | |
63 | |
64 <xsl:text disable-output-escaping="yes"></p> </xsl:text> | |
65 | |
66 <blockquote> | |
67 <pre> | |
68 <xsl:apply-templates/> | |
69 </pre> | |
70 </blockquote> | |
71 | |
72 <xsl:text disable-output-escaping="yes"><p> </xsl:text> | |
73 </xsl:template> | |
74 | |
75 <xsl:template match="note"> | |
76 <blockquote class="note"> | |
77 <xsl:apply-templates/> | |
78 </blockquote> | |
79 </xsl:template> | |
80 | |
81 <xsl:template match="para/note"> | |
82 | |
83 <xsl:text disable-output-escaping="yes"></p> </xsl:text> | |
84 | |
85 <blockquote class="note"> | |
86 <xsl:apply-templates/> | |
87 </blockquote> | |
88 | |
89 <xsl:text disable-output-escaping="yes"><p> </xsl:text> | |
90 </xsl:template> | |
91 | |
92 <xsl:template match="list[@type='bullet']"> | |
93 <ul> | |
94 <xsl:apply-templates/> | |
95 </ul> | |
96 </xsl:template> | |
97 | |
98 <xsl:template match="para/list[@type='bullet']"> | |
99 | |
100 <xsl:text disable-output-escaping="yes"></p> </xsl:text> | |
101 | |
102 <ul> | |
103 <xsl:apply-templates/> | |
104 </ul> | |
105 | |
106 <xsl:text disable-output-escaping="yes"><p> </xsl:text> | |
107 </xsl:template> | |
108 | |
109 <xsl:template match="list[@type='enum']"> | |
110 <ol> | |
111 <xsl:apply-templates/> | |
112 </ol> | |
113 </xsl:template> | |
114 | |
115 <xsl:template match="para/list[@type='enum']"> | |
116 | |
117 <xsl:text disable-output-escaping="yes"></p> </xsl:text> | |
118 | |
119 <ol> | |
120 <xsl:apply-templates/> | |
121 </ol> | |
122 | |
123 <xsl:text disable-output-escaping="yes"><p> </xsl:text> | |
124 </xsl:template> | |
125 | |
126 <xsl:template match="listitem"> | |
127 <li> | |
128 <xsl:apply-templates/> | |
129 </li> | |
130 </xsl:template> | |
131 | |
132 <xsl:template match="list[@type='tag']"> | |
133 <dl compact=""> | |
134 <xsl:apply-templates/> | |
135 </dl> | |
136 </xsl:template> | |
137 | |
138 <xsl:template match="para/list[@type='tag']"> | |
139 | |
140 <xsl:text disable-output-escaping="yes"></p> </xsl:text> | |
141 | |
142 <dl compact=""> | |
143 <xsl:apply-templates/> | |
144 </dl> | |
145 | |
146 <xsl:text disable-output-escaping="yes"><p> </xsl:text> | |
147 </xsl:template> | |
148 | |
149 <xsl:template match="tag-name"> | |
150 <dt> | |
151 <xsl:apply-templates/> | |
152 </dt> | |
153 </xsl:template> | |
154 | |
155 <xsl:template match="tag-desc"> | |
156 <dd> | |
157 <xsl:apply-templates/> | |
158 </dd> | |
159 </xsl:template> | |
160 | |
161 <xsl:template match="list[not(@type)]"> | |
162 <ul> | |
163 <xsl:apply-templates/> | |
164 </ul> | |
165 </xsl:template> | |
166 | |
167 <xsl:template match="para/list[not(@type)]"> | |
168 | |
169 <xsl:text disable-output-escaping="yes"></p> </xsl:text> | |
170 | |
171 <ul> | |
172 <xsl:apply-templates/> | |
173 </ul> | |
174 | |
175 <xsl:text disable-output-escaping="yes"><p> </xsl:text> | |
176 </xsl:template> | |
177 | |
178 <xsl:template match="item"> | |
179 <li> | |
180 <xsl:apply-templates/> | |
181 </li> | |
182 </xsl:template> | |
183 | |
184 <xsl:template match="orderedlist"> | |
185 <ol> | |
186 <xsl:apply-templates/> | |
187 </ol> | |
188 </xsl:template> | |
189 | |
190 <xsl:template match="para/orderedlist"> | |
191 | |
192 <xsl:text disable-output-escaping="yes"></p> </xsl:text> | |
193 | |
194 <ol> | |
195 <xsl:apply-templates/> | |
196 </ol> | |
197 | |
198 <xsl:text disable-output-escaping="yes"><p> </xsl:text> | |
199 </xsl:template> | |
200 | |
201 <xsl:template match="item"> | |
202 <li> | |
203 <xsl:apply-templates/> | |
204 </li> | |
205 </xsl:template> | |
206 | |
207 <xsl:template match="table[@note and @width]"> | |
208 | |
209 <blockquote> | |
210 <table width="{@width}"> | |
211 <xsl:apply-templates/> | |
212 </table> | |
213 </blockquote> | |
214 </xsl:template> | |
215 | |
216 <xsl:template match="table[@note and not(@width)]"> | |
217 | |
218 <blockquote> | |
219 <table width="100%"> | |
220 <xsl:apply-templates/> | |
221 </table> | |
222 </blockquote> | |
223 </xsl:template> | |
224 | |
225 <xsl:template match="table[not(@note) and @width]"> | |
226 | |
227 <table width="{@width}"> | |
228 <xsl:apply-templates/> | |
229 </table> | |
230 </xsl:template> | |
231 | |
232 <xsl:template match="table"> | |
233 <table width="100%"> | |
234 <xsl:apply-templates/> | |
235 </table> | |
236 </xsl:template> | |
237 | |
238 <xsl:template match="tr"> | |
239 <tr> | |
240 <xsl:apply-templates/> | |
241 </tr> | |
242 </xsl:template> | |
243 | |
244 <xsl:template match="td[@width]"> | |
245 <td width="{@width}"> | |
246 <xsl:apply-templates/> | |
247 </td> | |
248 </xsl:template> | |
249 | |
250 <xsl:template match="td"> | |
251 <td> | |
252 <xsl:apply-templates/> | |
253 </td> | |
254 </xsl:template> | |
255 | |
256 <xsl:template match="c-def"> | |
257 <code> | |
258 <xsl:apply-templates/> | |
259 </code> | |
260 </xsl:template> | |
261 | |
262 <xsl:template match="c-func"> | |
263 <code> | |
264 <xsl:apply-templates/> | |
265 <xsl:text>()</xsl:text> | |
266 </code> | |
267 </xsl:template> | |
268 | |
269 <xsl:template match="command"> | |
270 <code> | |
271 <xsl:apply-templates/> | |
272 </code> | |
273 </xsl:template> | |
274 | |
275 <xsl:template match="emphasis"> | |
276 <strong> | |
277 <xsl:apply-templates/> | |
278 </strong> | |
279 </xsl:template> | |
280 | |
281 <xsl:template match="example"> | |
282 <blockquote> | |
283 <pre> | |
284 <xsl:apply-templates/> | |
285 </pre> | |
286 </blockquote> | |
287 </xsl:template> | |
288 | |
289 <xsl:template match="para/example"> | |
290 | |
291 <xsl:text disable-output-escaping="yes"></p> </xsl:text> | |
292 | |
293 <blockquote> | |
294 <pre> | |
295 <xsl:apply-templates/> | |
296 </pre> | |
297 </blockquote> | |
298 | |
299 <xsl:text disable-output-escaping="yes"><p> </xsl:text> | |
300 </xsl:template> | |
301 | |
302 <xsl:template match="argument"> | |
303 <code> | |
304 <i> | |
305 <xsl:apply-templates/> | |
306 </i> | |
307 </code> | |
308 </xsl:template> | |
309 | |
310 <xsl:template match="parameter"> | |
311 <code> | |
312 <xsl:apply-templates/> | |
313 </code> | |
314 </xsl:template> | |
315 | |
316 <xsl:template match="header"> | |
317 | |
318 <xsl:text>“</xsl:text> | |
319 <xsl:apply-templates/> | |
320 <xsl:text>”</xsl:text> | |
321 </xsl:template> | |
322 | |
323 <xsl:template match="http-status"> | |
324 | |
325 <xsl:value-of select="@code"/> | |
326 <xsl:text> (</xsl:text> | |
327 <xsl:value-of select="@text"/> | |
328 <xsl:text>)</xsl:text> | |
329 </xsl:template> | |
330 | |
331 <xsl:template match="dirname[/*[@lang='he']]"> | |
332 | |
333 <nobr> | |
334 <span class="ltr"> | |
335 | |
336 <xsl:text>“</xsl:text> | |
337 <xsl:apply-templates/> | |
338 <xsl:text>”</xsl:text> | |
339 | |
340 </span> | |
341 </nobr> | |
342 </xsl:template> | |
343 | |
344 <xsl:template match="dirname"> | |
345 | |
346 <nobr> | |
347 <xsl:text>“</xsl:text> | |
348 <xsl:apply-templates/> | |
349 <xsl:text>”</xsl:text> | |
350 </nobr> | |
351 </xsl:template> | |
352 | |
353 <xsl:template match="url[/*[@lang='he']]"> | |
354 | |
355 <i> | |
356 <span class="ltr"> | |
357 <xsl:apply-templates/> | |
358 </span> | |
359 </i> | |
360 </xsl:template> | |
361 | |
362 <xsl:template match="url"> | |
363 <i> | |
364 <xsl:apply-templates/> | |
365 </i> | |
366 </xsl:template> | |
367 | |
368 <xsl:template match="value"> | |
369 <code> | |
370 <xsl:apply-templates/> | |
371 </code> | |
372 </xsl:template> | |
373 | |
374 <xsl:template match="registered"> | |
375 <xsl:apply-templates/> | |
376 <sup> | |
377 <xsl:text>®</xsl:text> | |
378 </sup> | |
379 </xsl:template> | |
380 | |
381 <xsl:template match="var"> | |
382 <code> | |
383 <xsl:apply-templates/> | |
384 </code> | |
385 </xsl:template> | |
386 | |
387 <xsl:template match="path"> | |
388 <code> | |
389 <xsl:apply-templates/> | |
390 </code> | |
391 </xsl:template> | |
392 | |
393 <xsl:template match="code"> | |
394 <code> | |
395 <xsl:apply-templates/> | |
396 </code> | |
397 </xsl:template> | |
398 | |
399 <xsl:template match="i"> | |
400 <i> | |
401 <xsl:apply-templates/> | |
402 </i> | |
403 </xsl:template> | |
404 | |
405 <xsl:template match="b"> | |
406 <b> | |
407 <xsl:apply-templates/> | |
408 </b> | |
409 </xsl:template> | |
410 | |
411 <xsl:template match="nobr"> | |
412 <nobr> | |
413 <xsl:apply-templates/> | |
414 </nobr> | |
415 </xsl:template> | |
416 | |
417 <xsl:template match="mdash"> | |
418 <xsl:text> — </xsl:text> | |
419 </xsl:template> | |
420 | |
421 <xsl:template match="space"> | |
422 <xsl:text> </xsl:text> | |
423 </xsl:template> | |
424 | |
425 <xsl:template match="br"> | |
426 <br/> | |
427 </xsl:template> | |
428 | |
429 </xsl:stylesheet> |