annotate xsls/directive.xsls @ 104:3ae68fe2e938

A nicer look for the directive's synopsis section, including i18n for "syntax", "default", "context", and "any (context)" strings.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 19 Oct 2011 08:29:21 +0000
parents c76a257f3fd4
children 72524ae53106
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
1 X:stylesheet {
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
2
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
3 X:template = "directive" {
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
4 <a name="{@name}"/>
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
5 <!-- <center><h4> !{@name} </h4></center> -->
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
6 <div class="directive">
104
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
7 <table cellspacing="0">
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
8 !! "syntax";
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
9 !! "default";
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
10 !! "context";
104
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
11 </table>
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
12 X:if "(@appeared-in)" {
104
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
13 <p>This directive appeared in version !{@appeared-in}.</p>
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
14 }
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
15 </div>
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
16 !! "para";
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
17 }
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
18
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
19 X:template = "syntax" {
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
20 X:if "position() = 1" {
104
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
21 X:text disable-output-escaping="yes" {
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
22 &lt;tr valign="top"&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
23 &lt;td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
24 }
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
25 <strong>
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
26 !{document(concat($XML, '/i18n.xml'))
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
27 /i18n/text[@lang = $LANG]/item[@id='syntax']}
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
28 </strong>:
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
29 X:text disable-output-escaping="yes" {
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
30 &lt;/td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
31 &lt;td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
32 }
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
33 <strong>&#8203;</strong>
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
34 }
102
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
35 <code>
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
36 !{../@name}
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
37 X:if "count(node()) != 0" {
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
38 X:text{ } !!;
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
39 }
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
40 </code>
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
41 <br/>
104
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
42 X:if "position() = last()" {
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
43 X:text disable-output-escaping="yes" {
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
44 &lt;/td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
45 &lt;/tr&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
46 }
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
47 }
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
48 }
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
49
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
50 X:template = "default" {
102
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
51 X:if "position() = 1" {
104
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
52 X:text disable-output-escaping="yes" {
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
53 &lt;tr valign="top"&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
54 &lt;td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
55 }
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
56 <strong>
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
57 !{document(concat($XML, '/i18n.xml'))
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
58 /i18n/text[@lang = $LANG]/item[@id='default']}
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
59 </strong>:
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
60 X:text disable-output-escaping="yes" {
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
61 &lt;/td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
62 &lt;td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
63 }
102
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
64 }
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
65 X:if "count(node()) = 0" {
99
1d315ef37215 The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents: 22
diff changeset
66 <strong>
1d315ef37215 The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents: 22
diff changeset
67 !{document(concat($XML, '/i18n.xml'))
1d315ef37215 The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents: 22
diff changeset
68 /i18n/text[@lang = $LANG]/item[@id='none']}
1d315ef37215 The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents: 22
diff changeset
69 </strong>
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
70 } else {
104
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
71 <strong>&#8203;</strong>
102
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
72 <code> !{../@name} X:text{ } !!; </code>
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
73 }
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
74 <br/>
104
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
75 X:if "position() = last()" {
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
76 X:text disable-output-escaping="yes" {
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
77 &lt;/td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
78 &lt;/tr&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
79 }
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
80 }
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
81 }
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
82
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
83 X:template = "context" {
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
84 X:if "position() = 1" {
104
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
85 X:text disable-output-escaping="yes" {
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
86 &lt;tr valign="top"&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
87 &lt;td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
88 }
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
89 <strong>
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
90 !{document(concat($XML, '/i18n.xml'))
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
91 /i18n/text[@lang = $LANG]/item[@id='context']}
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
92 </strong>:
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
93 X:text disable-output-escaping="yes" {
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
94 &lt;/td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
95 &lt;td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
96 }
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
97 <strong>&#8203;</strong>
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
98 }
104
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
99 X:if "count(node()) = 0" {
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
100 <strong>
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
101 !{document(concat($XML, '/i18n.xml'))
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
102 /i18n/text[@lang = $LANG]/item[@id='context.any']}
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
103 </strong>
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
104 } else {
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
105 <code> !!; </code>
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
106 }
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
107 X:if "position() != last()" {
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
108 X:text{, }
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
109 } else {
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
110 <br/>
104
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
111 X:text disable-output-escaping="yes" {
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
112 &lt;/td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
113 &lt;/tr&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
114 }
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
115 }
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
116 }
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
117
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
118 }