Mercurial > hg > nginx-site
annotate xsls/article.xsls @ 99:1d315ef37215
The case <default/> is now language-agnostic.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 18 Oct 2011 09:06:15 +0000 |
parents | 02fc5e96a305 |
children | 1aa4f50144e4 |
rev | line source |
---|---|
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1 X:stylesheet { |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
2 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
3 X:output method="html" indent="no" encoding="utf-8"; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
4 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
5 X:strip-space elements = "*"; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
6 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
7 <!-- |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
8 -- a current directory of a XSLT script is where the script is stored, |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
9 -- but not where XSLT processor has been started to run the script |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
10 --> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
11 X:param XML = "'../xml'"; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
12 X:param YEAR; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
13 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
14 X:var SITE = "'http://nginx.org'"; |
28
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
15 X:var LINK = "/article/@link | /module/@link"; |
99
1d315ef37215
The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents:
28
diff
changeset
|
16 X:var LANG = "/article/@lang | /module/@lang"; |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
17 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
18 X:include href = "dirname.xslt"; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
19 X:include href = "link.xslt"; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
20 X:include href = "style.xslt"; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
21 X:include href = "body.xslt"; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
22 X:include href = "menu.xslt"; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
23 X:include href = "donate.xslt"; |
28
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
24 X:include href = "directive.xslt"; |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
25 X:include href = "content.xslt"; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
26 X:include href = "versions.xslt"; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
27 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
28 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
29 X:template = "/article" { |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
30 <html><head> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
31 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
32 <title> !{@title} </title> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
33 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
34 !style (lang="/article/@lang") |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
35 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
36 </head> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
37 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
38 !body (lang="/article/@lang") |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
39 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
40 </html> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
41 } |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
42 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
43 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
44 X:template = "/article[@lang='he']" { |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
45 <html dir="rtl"><head> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
46 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
47 <title> !{@title} </title> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
48 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
49 !style (lang="/article/@lang") |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
50 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
51 </head> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
52 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
53 !body (lang="/article/@lang") |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
54 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
55 </html> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
56 } |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
57 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
58 |
28
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
59 X:template = "/module" { |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
60 <html><head> |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
61 |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
62 <title> !{@title} </title> |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
63 |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
64 !style (lang="/module/@lang") |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
65 |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
66 </head> |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
67 |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
68 !body (lang="/module/@lang") |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
69 |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
70 </html> |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
71 } |
28
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
72 |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
73 |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
74 X:template = "/module[@lang='he']" { |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
75 <html dir="rtl"><head> |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
76 |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
77 <title> !{@title} </title> |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
78 |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
79 !style (lang="/module/@lang") |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
80 |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
81 </head> |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
82 |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
83 !body (lang="/module/@lang") |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
84 |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
85 </html> |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
86 } |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
87 |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
88 |
02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
89 } |