Mercurial > hg > nginx-site
annotate xsls/news.xsls @ 549:ab1449e0573b
Typo fixed.
author | Andrey Belov <defan@nginx.com> |
---|---|
date | Mon, 25 Jun 2012 12:42:05 +0000 |
parents | 9085f0c59dc6 |
children | be54c443235a |
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 |
111
f31230984540
Fixed DOCTYPE generation to include the public system identifier.
Ruslan Ermilov <ru@nginx.com>
parents:
107
diff
changeset
|
3 X:output method="html" version="4.0" indent="no" encoding="utf-8"; |
0
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'"; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
15 X:var LINK = "/news/@link"; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
16 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
17 X:include href = "dirname.xslt"; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
18 X:include href = "link.xslt"; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
19 X:include href = "style.xslt"; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
20 X:include href = "body.xslt"; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
21 X:include href = "menu.xslt"; |
543
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
134
diff
changeset
|
22 X:include href = "ga.xslt"; |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
23 X:include href = "content.xslt"; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
24 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
25 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
26 X:template = "/news" { |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
27 <html><head> |
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 <link rel="alternate" type="application/rss+xml" |
123
7db449e89e92
Unified the use of the "name" attribute instead of "title".
Ruslan Ermilov <ru@nginx.com>
parents:
111
diff
changeset
|
30 title="{@name}" href="{$SITE}/index.rss" /> |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
31 |
123
7db449e89e92
Unified the use of the "name" attribute instead of "title".
Ruslan Ermilov <ru@nginx.com>
parents:
111
diff
changeset
|
32 <title> !{@name} X:if "$YEAR" { X:text{: } !{$YEAR} } </title> |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
33 |
125
c7d2ce96298b
Made sure to always pass "@lang" to the parameterized "style" template.
Ruslan Ermilov <ru@nginx.com>
parents:
123
diff
changeset
|
34 !style (lang="@lang") |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
35 |
543
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
134
diff
changeset
|
36 !ga () |
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
134
diff
changeset
|
37 |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
38 </head> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
39 |
123
7db449e89e92
Unified the use of the "name" attribute instead of "title".
Ruslan Ermilov <ru@nginx.com>
parents:
111
diff
changeset
|
40 !body (lang="@lang") |
0
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 </html> |
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 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
46 X:template = "event" { |
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 X:var year = { !{substring(../event[position()=1]/@date, 1, 4)} } |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
49 X:var y = { !{substring(@date, 1, 4)} } |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
50 |
129
523a80fc32b4
Fixed a fallout from switching to standard HTML.
Ruslan Ermilov <ru@nginx.com>
parents:
125
diff
changeset
|
51 X:if "position() = 1" { |
523a80fc32b4
Fixed a fallout from switching to standard HTML.
Ruslan Ermilov <ru@nginx.com>
parents:
125
diff
changeset
|
52 X:text disable-output-escaping="yes" { |
523a80fc32b4
Fixed a fallout from switching to standard HTML.
Ruslan Ermilov <ru@nginx.com>
parents:
125
diff
changeset
|
53 <table class="news"> |
523a80fc32b4
Fixed a fallout from switching to standard HTML.
Ruslan Ermilov <ru@nginx.com>
parents:
125
diff
changeset
|
54 } |
523a80fc32b4
Fixed a fallout from switching to standard HTML.
Ruslan Ermilov <ru@nginx.com>
parents:
125
diff
changeset
|
55 } |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
56 |
129
523a80fc32b4
Fixed a fallout from switching to standard HTML.
Ruslan Ermilov <ru@nginx.com>
parents:
125
diff
changeset
|
57 X:if "(not($YEAR) and ($year = $y or position() < 11)) or $YEAR=$y" { |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
58 <tr> |
134
0991bf45cbb8
Added "white-space: nowrap" to prevent date wrapping.
Maxim Dounin <mdounin@mdounin.ru>
parents:
133
diff
changeset
|
59 <td class="date"> |
0991bf45cbb8
Added "white-space: nowrap" to prevent date wrapping.
Maxim Dounin <mdounin@mdounin.ru>
parents:
133
diff
changeset
|
60 <a name="{@date}" /> !{@date} |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
61 </td> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
62 <td> !! "para"; </td> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
63 </tr> |
129
523a80fc32b4
Fixed a fallout from switching to standard HTML.
Ruslan Ermilov <ru@nginx.com>
parents:
125
diff
changeset
|
64 } |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
65 |
129
523a80fc32b4
Fixed a fallout from switching to standard HTML.
Ruslan Ermilov <ru@nginx.com>
parents:
125
diff
changeset
|
66 X:if "position() = last()" { |
523a80fc32b4
Fixed a fallout from switching to standard HTML.
Ruslan Ermilov <ru@nginx.com>
parents:
125
diff
changeset
|
67 X:text disable-output-escaping="yes" { |
523a80fc32b4
Fixed a fallout from switching to standard HTML.
Ruslan Ermilov <ru@nginx.com>
parents:
125
diff
changeset
|
68 </table> |
523a80fc32b4
Fixed a fallout from switching to standard HTML.
Ruslan Ermilov <ru@nginx.com>
parents:
125
diff
changeset
|
69 } |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
70 } |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
71 } |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
72 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
73 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
74 } |