annotate xsls/body.xsls @ 580:be54c443235a

Added copyright markers to documentation sources.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 10 Jul 2012 12:59:42 +0000
parents 8beaff4b3b6b
children 05761a8e38f6
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: 131
diff changeset
1 <!--
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 131
diff changeset
2 Copyright (C) Igor Sysoev
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 131
diff changeset
3 Copyright (C) Nginx, Inc.
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 131
diff changeset
4 -->
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 131
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
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
8 X:template body (lang) {
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
9
91
36f1994d7fa1 Made index alignment more natural.
Ruslan Ermilov <ru@nginx.com>
parents: 81
diff changeset
10 X:variable MENU_ALIGN = {
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
11 X:if "$lang = 'he'" { X:text {left} } else { X:text {right} }
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
91
36f1994d7fa1 Made index alignment more natural.
Ruslan Ermilov <ru@nginx.com>
parents: 81
diff changeset
14 X:variable INDEX_ALIGN = {
36f1994d7fa1 Made index alignment more natural.
Ruslan Ermilov <ru@nginx.com>
parents: 81
diff changeset
15 X:if "$lang = 'he'" { X:text {right} } else { X:text {left} }
36f1994d7fa1 Made index alignment more natural.
Ruslan Ermilov <ru@nginx.com>
parents: 81
diff changeset
16 }
36f1994d7fa1 Made index alignment more natural.
Ruslan Ermilov <ru@nginx.com>
parents: 81
diff changeset
17
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
18 <body>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
19 <table width="100%">
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
20
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
21 <tr>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
22 <td width="70%"><center><h3>
123
7db449e89e92 Unified the use of the "name" attribute instead of "title".
Ruslan Ermilov <ru@nginx.com>
parents: 121
diff changeset
23 !{@name} X:if "$YEAR" { X:text{: } !{$YEAR} }
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
24 </h3></center></td>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
25
91
36f1994d7fa1 Made index alignment more natural.
Ruslan Ermilov <ru@nginx.com>
parents: 81
diff changeset
26 <td rowspan="2" align="{$MENU_ALIGN}" valign="top">
41
425f0b4acecc Eliminating border around logo.
Igor Sysoev <igor@sysoev.ru>
parents: 39
diff changeset
27 <a href="http://nginx.org">
425f0b4acecc Eliminating border around logo.
Igor Sysoev <igor@sysoev.ru>
parents: 39
diff changeset
28 <img src="/nginx.gif" alt="nginx" border="0"/>
425f0b4acecc Eliminating border around logo.
Igor Sysoev <igor@sysoev.ru>
parents: 39
diff changeset
29 </a><br/>
0
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 <br/>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
32 <br/>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
33
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
34 !! "document(concat($XML, '/menu.xml'))
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
35 /menus/menu[@lang = $lang]/item";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
36 </td>
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 </tr>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
39
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
40 <tr><td valign="top">
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
41
131
8beaff4b3b6b Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents: 123
diff changeset
42 X:if "section[@name]" {
8beaff4b3b6b Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents: 123
diff changeset
43 <table width="100%"><tr><td align="{$INDEX_ALIGN}">
8beaff4b3b6b Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents: 123
diff changeset
44 X:for-each "section[@id and @name]" {
8beaff4b3b6b Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents: 123
diff changeset
45 <a href="#{@id}"> !{@name} </a><br/>
8beaff4b3b6b Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents: 123
diff changeset
46 X:if "@id = 'directives'" {
8beaff4b3b6b Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents: 123
diff changeset
47 X:for-each "directive[@name]" {
8beaff4b3b6b Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents: 123
diff changeset
48 X:text{&#160;&#160;&#160;&#160;&#160;}
8beaff4b3b6b Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents: 123
diff changeset
49 <a href="#{@name}"> !{@name} </a><br/>
8beaff4b3b6b Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents: 123
diff changeset
50 }
81
5a2dcd623666 In the modules documents, the list of directives is now additionally
Ruslan Ermilov <ru@nginx.com>
parents: 41
diff changeset
51 }
32
2bcfb5f75e06 Supporting new format of <module> and <section>:
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
52 }
131
8beaff4b3b6b Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents: 123
diff changeset
53 </td></tr></table>
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
54 }
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
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
58 X:if "@author" {
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
59 <table width="100%"><tr><td align="right">
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
60
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
61 !{document(concat($XML, '/i18n.xml'))
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
62 /i18n/text[@lang = $lang]/item[@id='author']}
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
63 X:text { } !{@author} <br/>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
64
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
65 X:if "@editor" {
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
66 !{document(concat($XML, '/i18n.xml'))
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
67 /i18n/text[@lang = $lang]/item[@id='editor']}
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
68 X:text { } !{@editor} <br/>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
69 }
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 X:if "@translator" {
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
72 !{document(concat($XML, '/i18n.xml'))
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
73 /i18n/text[@lang = $lang]/item[@id='translator']}
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
74 X:text { } !{@translator} <br/>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
75 }
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
76
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
77 </td></tr></table>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
78 }
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
79
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
80 </td></tr>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
81
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
82 </table>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
83 </body>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
84
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
85 }
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
86
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
87 }