comparison xsls/download.xsls @ 0:61e04fc01027

Initial import of the nginx.org website.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 11 Aug 2011 12:19:13 +0000
parents
children ee725af08951
comparison
equal deleted inserted replaced
-1:000000000000 0:61e04fc01027
1 X:stylesheet {
2
3 X:output method="html" indent="no" encoding="utf-8";
4
5 X:strip-space elements = "*";
6
7 <!--
8 -- a current directory of a XSLT script is where the script is stored,
9 -- but not where XSLT processor has been started to run the script
10 -->
11 X:param XML = "'../xml'";
12 X:param YEAR;
13
14 X:var LINK = "/article/@link";
15
16 X:include href = "dirname.xslt";
17 X:include href = "link.xslt";
18 X:include href = "style.xslt";
19 X:include href = "body.xslt";
20 X:include href = "menu.xslt";
21 X:include href = "content.xslt";
22
23
24 X:template = "/article" {
25 <html><head>
26
27 <title> !{@title} </title>
28
29 !style ()
30
31 </head>
32
33 !body (lang="/article/@lang")
34
35 </html>
36 }
37
38
39 X:template = "download" { <table width="100%"> !! "item"; </table> }
40
41
42 X:template = "download/item[position() &lt;= ../@last]" {
43 <tr>
44 <td width="20%">
45 X:if "position() = 1" {
46 <a>
47 X:attribute "href" { X:text{/} !{/article/@lang} X:text{/} !{../@changes} }
48 !{../@changes}
49 </a>
50 }
51 </td>
52
53 <td width="20%">
54 <a>
55 X:attribute "href" {
56 X:text {/download/nginx-} !{@ver} X:text {.tar.gz}
57 }
58 X:text {nginx-} !{@ver}
59 </a>
60
61 X:if "@pgp = 'yes'" {
62 X:text {&#xA0; }
63 <a>
64 X:attribute "href" {
65 X:text {/download/nginx-} !{@ver} X:text {.tar.gz.asc}
66 }
67 X:text {pgp}
68 </a>
69 }
70 </td>
71
72 <td>
73 X:if "@win= 'yes'" {
74 <a>
75 X:attribute "href" {
76 X:text {/download/nginx-} !{@ver} X:text {.zip}
77 }
78 X:text {nginx/Windows-} !{@ver}
79 </a>
80
81 X:if "@pgp = 'yes'" {
82 X:text {&#xA0; }
83 <a>
84 X:attribute "href" {
85 X:text {/download/nginx-} !{@ver} X:text {.zip.asc}
86 }
87 X:text {pgp}
88 </a>
89 }
90 }
91 </td>
92
93 </tr>
94 }
95
96
97 X:template = "download/item[position() &gt; ../@last]" { }
98
99 }