annotate xsls/article.xsls @ 73:6327603448e2

Updated the "How to prevent processing requests with undefined server names" example to use the "server_name" directive with an empty string argument to match requests without the "Host:" request header line.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 10 Oct 2011 09:36:40 +0000
parents 02fc5e96a305
children 1d315ef37215
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
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";
0
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";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
22 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
23 X:include href = "directive.xslt";
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
24 X:include href = "content.xslt";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
25 X:include href = "versions.xslt";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
26
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 X:template = "/article" {
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
29 <html><head>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
30
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
31 <title> !{@title} </title>
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 !style (lang="/article/@lang")
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 </head>
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 !body (lang="/article/@lang")
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 </html>
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
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 X:template = "/article[@lang='he']" {
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
44 <html dir="rtl"><head>
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 <title> !{@title} </title>
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 !style (lang="/article/@lang")
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 </head>
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 !body (lang="/article/@lang")
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 </html>
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
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
57
28
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
58 X:template = "/module" {
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
59 <html><head>
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
60
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
61 <title> !{@title} </title>
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 !style (lang="/module/@lang")
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 </head>
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 !body (lang="/module/@lang")
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 </html>
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
70 }
28
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
71
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 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
74 <html dir="rtl"><head>
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
75
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
76 <title> !{@title} </title>
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 !style (lang="/module/@lang")
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 </head>
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 !body (lang="/module/@lang")
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 </html>
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
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 }