22
|
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 = "/module/@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 = "directive.xslt";
|
|
23 X:include href = "content.xslt";
|
|
24 X:include href = "versions.xslt";
|
|
25
|
|
26
|
|
27 X:template = "/module" {
|
|
28 <html><head>
|
|
29
|
|
30 <title> !{@title} </title>
|
|
31
|
|
32 !style (lang="/module/@lang")
|
|
33
|
|
34 </head>
|
|
35
|
|
36 !body (lang="/module/@lang")
|
|
37
|
|
38 </html>
|
|
39 }
|
|
40
|
|
41
|
|
42 X:template = "/module[@lang='he']" {
|
|
43 <html dir="rtl"><head>
|
|
44
|
|
45 <title> !{@title} </title>
|
|
46
|
|
47 !style (lang="/module/@lang")
|
|
48
|
|
49 </head>
|
|
50
|
|
51 !body (lang="/module/@lang")
|
|
52
|
|
53 </html>
|
|
54 }
|
|
55
|
|
56
|
|
57 }
|