annotate xsls/body.xsls @ 81:5a2dcd623666

In the modules documents, the list of directives is now additionally output in the contents section.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 13 Oct 2011 07:45:20 +0000
parents 425f0b4acecc
children 36f1994d7fa1
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:template body (lang) {
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:variable ALIGN = {
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
6 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
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 <body>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
10 <table width="100%">
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 <tr>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
13 <td width="70%"><center><h3>
32
2bcfb5f75e06 Supporting new format of <module> and <section>:
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
14 !{@name | @title} X:if "$YEAR" { X:text{: } !{$YEAR} }
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
15 </h3></center></td>
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 <td rowspan="2" align="{$ALIGN}" valign="top">
41
425f0b4acecc Eliminating border around logo.
Igor Sysoev <igor@sysoev.ru>
parents: 39
diff changeset
18 <a href="http://nginx.org">
425f0b4acecc Eliminating border around logo.
Igor Sysoev <igor@sysoev.ru>
parents: 39
diff changeset
19 <img src="/nginx.gif" alt="nginx" border="0"/>
425f0b4acecc Eliminating border around logo.
Igor Sysoev <igor@sysoev.ru>
parents: 39
diff changeset
20 </a><br/>
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
21
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
22 <br/>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
23 <br/>
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 !! "document(concat($XML, '/menu.xml'))
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
26 /menus/menu[@lang = $lang]/item";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
27 </td>
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 </tr>
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 <tr><td valign="top">
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 <table width="100%"><tr><td align="{$ALIGN}">
32
2bcfb5f75e06 Supporting new format of <module> and <section>:
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
34 X:if "section[@id]" {
2bcfb5f75e06 Supporting new format of <module> and <section>:
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
35 X:for-each "section[@id]" {
2bcfb5f75e06 Supporting new format of <module> and <section>:
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
36 <a href="#{@id}"> !{@name} </a><br/>
81
5a2dcd623666 In the modules documents, the list of directives is now additionally
Ruslan Ermilov <ru@nginx.com>
parents: 41
diff changeset
37 X:if "@id = 'directives'" {
5a2dcd623666 In the modules documents, the list of directives is now additionally
Ruslan Ermilov <ru@nginx.com>
parents: 41
diff changeset
38 X:for-each "directive[@name]" {
5a2dcd623666 In the modules documents, the list of directives is now additionally
Ruslan Ermilov <ru@nginx.com>
parents: 41
diff changeset
39 <a href="#{@name}"> !{@name} </a>
5a2dcd623666 In the modules documents, the list of directives is now additionally
Ruslan Ermilov <ru@nginx.com>
parents: 41
diff changeset
40 X:text{&#160;&#160;&#160;&#160;&#160;}<br/>
5a2dcd623666 In the modules documents, the list of directives is now additionally
Ruslan Ermilov <ru@nginx.com>
parents: 41
diff changeset
41 }
5a2dcd623666 In the modules documents, the list of directives is now additionally
Ruslan Ermilov <ru@nginx.com>
parents: 41
diff changeset
42 }
32
2bcfb5f75e06 Supporting new format of <module> and <section>:
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
43 }
2bcfb5f75e06 Supporting new format of <module> and <section>:
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
44 } else {
2bcfb5f75e06 Supporting new format of <module> and <section>:
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
45 X:for-each "section[@name]" {
2bcfb5f75e06 Supporting new format of <module> and <section>:
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
46 <a href="#{@name}"> !{@title} </a><br/>
2bcfb5f75e06 Supporting new format of <module> and <section>:
Igor Sysoev <igor@sysoev.ru>
parents: 0
diff changeset
47 }
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
48 }
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
49 </td></tr></table>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
50
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
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
53 X:if "@author" {
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
54 <table width="100%"><tr><td align="right">
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 !{document(concat($XML, '/i18n.xml'))
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
57 /i18n/text[@lang = $lang]/item[@id='author']}
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
58 X:text { } !{@author} <br/>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
59
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
60 X:if "@editor" {
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='editor']}
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
63 X:text { } !{@editor} <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
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
66 X:if "@translator" {
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
67 !{document(concat($XML, '/i18n.xml'))
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
68 /i18n/text[@lang = $lang]/item[@id='translator']}
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
69 X:text { } !{@translator} <br/>
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 </td></tr></table>
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
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
75 </td></tr>
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 </table>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
78 </body>
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 }
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 }