Mercurial > hg > nginx-site
comparison xsls/article.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 | 02fc5e96a305 |
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 SITE = "'http://nginx.org'"; | |
15 X:var LINK = "/article/@link"; | |
16 | |
17 X:include href = "dirname.xslt"; | |
18 X:include href = "link.xslt"; | |
19 X:include href = "style.xslt"; | |
20 X:include href = "body.xslt"; | |
21 X:include href = "menu.xslt"; | |
22 X:include href = "donate.xslt"; | |
23 X:include href = "content.xslt"; | |
24 X:include href = "versions.xslt"; | |
25 | |
26 | |
27 X:template = "/article" { | |
28 <html><head> | |
29 | |
30 <title> !{@title} </title> | |
31 | |
32 !style (lang="/article/@lang") | |
33 | |
34 </head> | |
35 | |
36 !body (lang="/article/@lang") | |
37 | |
38 </html> | |
39 } | |
40 | |
41 | |
42 X:template = "/article[@lang='he']" { | |
43 <html dir="rtl"><head> | |
44 | |
45 <title> !{@title} </title> | |
46 | |
47 !style (lang="/article/@lang") | |
48 | |
49 </head> | |
50 | |
51 !body (lang="/article/@lang") | |
52 | |
53 </html> | |
54 } | |
55 | |
56 | |
57 } |