annotate xsls/article.xsls @ 105:1aa4f50144e4

Adding document type declaration with the public identifier.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 19 Oct 2011 08:30:46 +0000
parents 1d315ef37215
children f31230984540
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
105
1aa4f50144e4 Adding document type declaration with the public identifier.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
3 X:output method="html" indent="no" encoding="utf-8"
1aa4f50144e4 Adding document type declaration with the public identifier.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
4 doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN";
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
5
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
6 X:strip-space elements = "*";
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 <!--
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
9 -- 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
10 -- 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
11 -->
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
12 X:param XML = "'../xml'";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
13 X:param YEAR;
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
14
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
15 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
16 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
17 X:var LANG = "/article/@lang | /module/@lang";
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
18
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
19 X:include href = "dirname.xslt";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
20 X:include href = "link.xslt";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
21 X:include href = "style.xslt";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
22 X:include href = "body.xslt";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
23 X:include href = "menu.xslt";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
24 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
25 X:include href = "directive.xslt";
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
26 X:include href = "content.xslt";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
27 X:include href = "versions.xslt";
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
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
30 X:template = "/article" {
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
31 <html><head>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
32
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
33 <title> !{@title} </title>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
34
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
35 !style (lang="/article/@lang")
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
36
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
37 </head>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
38
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
39 !body (lang="/article/@lang")
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
40
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
41 </html>
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
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
45 X:template = "/article[@lang='he']" {
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
46 <html dir="rtl"><head>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
47
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
48 <title> !{@title} </title>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
49
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
50 !style (lang="/article/@lang")
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
51
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
52 </head>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
53
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
54 !body (lang="/article/@lang")
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
55
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
56 </html>
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
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
59
28
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
60 X:template = "/module" {
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
61 <html><head>
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
62
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
63 <title> !{@title} </title>
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
64
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
65 !style (lang="/module/@lang")
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
66
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
67 </head>
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
68
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
69 !body (lang="/module/@lang")
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
70
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
71 </html>
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
72 }
28
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
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
75 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
76 <html dir="rtl"><head>
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
77
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
78 <title> !{@title} </title>
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
79
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
80 !style (lang="/module/@lang")
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
81
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
82 </head>
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
83
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
84 !body (lang="/module/@lang")
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
85
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
86 </html>
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
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
90 }