annotate xsls/directive.xsls @ 112:d3e240f7157c

Inside the "directive" prologue block, addressed the vertical alignment issue via a different mean, and made default text render as multi-line.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 20 Oct 2011 13:26:11 +0000
parents 72524ae53106
children 273d7407de69
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" {
112
d3e240f7157c Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents: 108
diff changeset
22 &lt;tr&gt;
104
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 }
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
33 }
102
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
34 <code>
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
35 !{../@name}
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
36 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
37 X:text{ } !!;
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
38 }
108
72524ae53106 Explicitly marked directives with the block syntax. Such directives will
Ruslan Ermilov <ru@nginx.com>
parents: 104
diff changeset
39 X:if "@block = 'yes'" {
72524ae53106 Explicitly marked directives with the block syntax. Such directives will
Ruslan Ermilov <ru@nginx.com>
parents: 104
diff changeset
40 X:text{ \{ ... \}}
72524ae53106 Explicitly marked directives with the block syntax. Such directives will
Ruslan Ermilov <ru@nginx.com>
parents: 104
diff changeset
41 } else {
72524ae53106 Explicitly marked directives with the block syntax. Such directives will
Ruslan Ermilov <ru@nginx.com>
parents: 104
diff changeset
42 X:text{;}
72524ae53106 Explicitly marked directives with the block syntax. Such directives will
Ruslan Ermilov <ru@nginx.com>
parents: 104
diff changeset
43 }
102
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
44 </code>
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
45 <br/>
104
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
46 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
47 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
48 &lt;/td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
49 &lt;/tr&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
50 }
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
51 }
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
52 }
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
53
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
54 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
55 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
56 X:text disable-output-escaping="yes" {
112
d3e240f7157c Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents: 108
diff changeset
57 &lt;tr&gt;
104
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
58 &lt;td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
59 }
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
60 <strong>
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
61 !{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
62 /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
63 </strong>:
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
64 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
65 &lt;/td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
66 &lt;td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
67 }
102
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
68 }
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 99
diff changeset
69 X:if "count(node()) = 0" {
99
1d315ef37215 The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents: 22
diff changeset
70 <strong>
1d315ef37215 The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents: 22
diff changeset
71 !{document(concat($XML, '/i18n.xml'))
1d315ef37215 The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents: 22
diff changeset
72 /i18n/text[@lang = $LANG]/item[@id='none']}
1d315ef37215 The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents: 22
diff changeset
73 </strong>
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
74 } else {
112
d3e240f7157c Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents: 108
diff changeset
75 <pre>
108
72524ae53106 Explicitly marked directives with the block syntax. Such directives will
Ruslan Ermilov <ru@nginx.com>
parents: 104
diff changeset
76 !{../@name}
72524ae53106 Explicitly marked directives with the block syntax. Such directives will
Ruslan Ermilov <ru@nginx.com>
parents: 104
diff changeset
77 X:if "count(../syntax[@block='yes'])" {
72524ae53106 Explicitly marked directives with the block syntax. Such directives will
Ruslan Ermilov <ru@nginx.com>
parents: 104
diff changeset
78 X:text{ \{} !!; X:text{\}}
72524ae53106 Explicitly marked directives with the block syntax. Such directives will
Ruslan Ermilov <ru@nginx.com>
parents: 104
diff changeset
79 } else {
72524ae53106 Explicitly marked directives with the block syntax. Such directives will
Ruslan Ermilov <ru@nginx.com>
parents: 104
diff changeset
80 X:text{ } !!; X:text{;}
72524ae53106 Explicitly marked directives with the block syntax. Such directives will
Ruslan Ermilov <ru@nginx.com>
parents: 104
diff changeset
81 }
112
d3e240f7157c Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents: 108
diff changeset
82 </pre>
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
83 }
104
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
84 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
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;/td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
87 &lt;/tr&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 }
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
90 }
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
91
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
92 X:template = "context" {
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
93 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
94 X:text disable-output-escaping="yes" {
112
d3e240f7157c Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents: 108
diff changeset
95 &lt;tr&gt;
104
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
96 &lt;td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
97 }
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
98 <strong>
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
99 !{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
100 /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
101 </strong>:
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
102 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
103 &lt;/td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
104 &lt;td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
105 }
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
106 }
104
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
107 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
108 <strong>
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
109 !{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
110 /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
111 </strong>
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
112 } else {
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
113 <code> !!; </code>
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
114 }
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
115 X:if "position() != last()" {
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
116 X:text{, }
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
117 } else {
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
118 <br/>
104
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
119 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
120 &lt;/td&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
121 &lt;/tr&gt;
3ae68fe2e938 A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
122 }
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
123 }
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
124 }
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
125
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
126 }