annotate xsls/article.xsls @ 2980:c80a7cb452e8

Linux packages: actualized supported Alpine Linux versions.
author Konstantin Pavlov <thresh@nginx.com>
date Fri, 16 Jun 2023 18:53:11 -0700
parents c704a743f269
children 80cc4e6d3d6d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
580
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 543
diff changeset
1 <!--
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 543
diff changeset
2 Copyright (C) Igor Sysoev
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 543
diff changeset
3 Copyright (C) Nginx, Inc.
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 543
diff changeset
4 -->
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 543
diff changeset
5
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
6 X:stylesheet {
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
7
111
f31230984540 Fixed DOCTYPE generation to include the public system identifier.
Ruslan Ermilov <ru@nginx.com>
parents: 105
diff changeset
8 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
9
268
b7b82f978b1d Don't strip space by default.
Ruslan Ermilov <ru@nginx.com>
parents: 123
diff changeset
10 X:strip-space elements = "article section";
0
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 <!--
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
13 -- 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
14 -- 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
15 -->
693
095d1972dad9 Added ability to switch languages without context change.
Vladimir Homutov <vl@nginx.com>
parents: 600
diff changeset
16 X:param XML = "'../xml'";
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
17 X:param YEAR;
600
89a4e934d207 Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents: 591
diff changeset
18 X:param ORIGIN;
693
095d1972dad9 Added ability to switch languages without context change.
Vladimir Homutov <vl@nginx.com>
parents: 600
diff changeset
19 X:param TRANS;
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
20
28
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
21 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
22 X:var LANG = "/article/@lang | /module/@lang";
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
23
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
24 X:include href = "dirname.xslt";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
25 X:include href = "link.xslt";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
26 X:include href = "style.xslt";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
27 X:include href = "body.xslt";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
28 X:include href = "menu.xslt";
2846
fdf1464e1977 Moved banner to the external file to make partial rollout possible.
Sergey Budnevitch <sb@waeme.net>
parents: 802
diff changeset
29 X:include href = "banner.xslt";
721
81ad082bc837 Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents: 706
diff changeset
30 X:include href = "content.xslt";
81ad082bc837 Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents: 706
diff changeset
31 X:include href = "books.xslt";
28
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
32 X:include href = "directive.xslt";
721
81ad082bc837 Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents: 706
diff changeset
33 X:include href = "donate.xslt";
81ad082bc837 Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents: 706
diff changeset
34 X:include href = "download.xslt";
81ad082bc837 Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents: 706
diff changeset
35 X:include href = "security.xslt";
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
36 X:include href = "versions.xslt";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
37
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
38
123
7db449e89e92 Unified the use of the "name" attribute instead of "title".
Ruslan Ermilov <ru@nginx.com>
parents: 122
diff changeset
39 X:template = "/article | /module" {
7db449e89e92 Unified the use of the "name" attribute instead of "title".
Ruslan Ermilov <ru@nginx.com>
parents: 122
diff changeset
40 <html>
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
41
591
b57657247299 Reduced the number of templates.
Ruslan Ermilov <ru@nginx.com>
parents: 580
diff changeset
42 X:if "@lang = 'he'" { X:attribute "dir" { X:text{rtl} } }
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
43
802
8af7fe0794b0 Improved appearance of Chinese documentation.
Ruslan Ermilov <ru@nginx.com>
parents: 721
diff changeset
44 X:if "@lang = 'cn'" { X:attribute "lang" { X:text{zh-CN} } }
8af7fe0794b0 Improved appearance of Chinese documentation.
Ruslan Ermilov <ru@nginx.com>
parents: 721
diff changeset
45
123
7db449e89e92 Unified the use of the "name" attribute instead of "title".
Ruslan Ermilov <ru@nginx.com>
parents: 122
diff changeset
46 <head>
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
47
123
7db449e89e92 Unified the use of the "name" attribute instead of "title".
Ruslan Ermilov <ru@nginx.com>
parents: 122
diff changeset
48 <title> !{@name} </title>
7db449e89e92 Unified the use of the "name" attribute instead of "title".
Ruslan Ermilov <ru@nginx.com>
parents: 122
diff changeset
49
7db449e89e92 Unified the use of the "name" attribute instead of "title".
Ruslan Ermilov <ru@nginx.com>
parents: 122
diff changeset
50 !style (lang="@lang")
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
51
2846
fdf1464e1977 Moved banner to the external file to make partial rollout possible.
Sergey Budnevitch <sb@waeme.net>
parents: 802
diff changeset
52 !banner ()
fdf1464e1977 Moved banner to the external file to make partial rollout possible.
Sergey Budnevitch <sb@waeme.net>
parents: 802
diff changeset
53
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
54 </head>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
55
123
7db449e89e92 Unified the use of the "name" attribute instead of "title".
Ruslan Ermilov <ru@nginx.com>
parents: 122
diff changeset
56 !body (lang="@lang")
28
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
57
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
58 </html>
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
59 }
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
02fc5e96a305 Moving decision logic from Makefile to XSLT because there is
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
62 }