Mercurial > hg > nginx-site
comparison xsls/content.xsls @ 132:1ebe107b3d7e
Expanded tabs into spaces.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 21 Oct 2011 14:22:31 +0000 |
parents | d4133c439eeb |
children | 8057b7793bd9 |
comparison
equal
deleted
inserted
replaced
131:8beaff4b3b6b | 132:1ebe107b3d7e |
---|---|
1 X:stylesheet { | 1 X:stylesheet { |
2 | 2 |
3 X:template = "section[@id and @name]" { | 3 X:template = "section[@id and @name]" { |
4 <a name="{@id}" /> <center><h4> !{@name} </h4></center> | 4 <a name="{@id}" /> <center><h4> !{@name} </h4></center> |
5 !!; | 5 !!; |
6 } | 6 } |
7 | 7 |
8 X:template = "section[@id and not(@name)]" { | 8 X:template = "section[@id and not(@name)]" { |
9 <a name="{@id}" /> | 9 <a name="{@id}" /> |
10 !!; | 10 !!; |
11 } | 11 } |
12 | 12 |
13 X:template = "section[not(@id) and @name]" { | 13 X:template = "section[not(@id) and @name]" { |
14 <center><h4> !{@name} </h4></center> | 14 <center><h4> !{@name} </h4></center> |
15 !!; | 15 !!; |
16 } | 16 } |
17 | 17 |
18 X:template = "para" { <p> !!; </p> } | 18 X:template = "para" { <p> !!; </p> } |
19 | 19 |
20 X:template = "para[@align]" { <p align="{@align}"> !!; </p> } | 20 X:template = "para[@align]" { <p align="{@align}"> !!; </p> } |
23 | 23 |
24 | 24 |
25 X:template = "programlisting" { <blockquote><pre> !!; </pre></blockquote> } | 25 X:template = "programlisting" { <blockquote><pre> !!; </pre></blockquote> } |
26 | 26 |
27 X:template = "para/programlisting" { | 27 X:template = "para/programlisting" { |
28 X:text disable-output-escaping="yes" {</p> } | 28 X:text disable-output-escaping="yes" {</p> } |
29 <blockquote><pre> !!; </pre></blockquote> | 29 <blockquote><pre> !!; </pre></blockquote> |
30 X:text disable-output-escaping="yes" {<p> } | 30 X:text disable-output-escaping="yes" {<p> } |
31 } | 31 } |
32 | 32 |
33 | 33 |
34 X:template = "note" { <blockquote class="note"> !!; </blockquote> } | 34 X:template = "note" { <blockquote class="note"> !!; </blockquote> } |
35 | 35 |
36 X:template = "para/note" { | 36 X:template = "para/note" { |
37 X:text disable-output-escaping="yes" {</p> } | 37 X:text disable-output-escaping="yes" {</p> } |
38 <blockquote class="note"> !!; </blockquote> | 38 <blockquote class="note"> !!; </blockquote> |
39 X:text disable-output-escaping="yes" {<p> } | 39 X:text disable-output-escaping="yes" {<p> } |
40 } | 40 } |
41 | 41 |
42 X:template = "list[@type='bullet']" { <ul> !!; </ul> } | 42 X:template = "list[@type='bullet']" { <ul> !!; </ul> } |
43 X:template = "para/list[@type='bullet']" { | 43 X:template = "para/list[@type='bullet']" { |
44 X:text disable-output-escaping="yes" {</p> } | 44 X:text disable-output-escaping="yes" {</p> } |
45 <ul> !!; </ul> | 45 <ul> !!; </ul> |
46 X:text disable-output-escaping="yes" {<p> } | 46 X:text disable-output-escaping="yes" {<p> } |
47 } | 47 } |
48 | 48 |
49 X:template = "list[@type='enum']" { <ol> !!; </ol> } | 49 X:template = "list[@type='enum']" { <ol> !!; </ol> } |
50 X:template = "para/list[@type='enum']" { | 50 X:template = "para/list[@type='enum']" { |
51 X:text disable-output-escaping="yes" {</p> } | 51 X:text disable-output-escaping="yes" {</p> } |
52 <ol> !!; </ol> | 52 <ol> !!; </ol> |
53 X:text disable-output-escaping="yes" {<p> } | 53 X:text disable-output-escaping="yes" {<p> } |
54 } | 54 } |
55 | 55 |
56 X:template = "listitem" { <li> !!; </li> } | 56 X:template = "listitem" { <li> !!; </li> } |
57 | 57 |
58 X:template = "list[@type='tag']" { <dl compact=""> !!; </dl> } | 58 X:template = "list[@type='tag']" { <dl compact=""> !!; </dl> } |
59 X:template = "para/list[@type='tag']" { | 59 X:template = "para/list[@type='tag']" { |
60 X:text disable-output-escaping="yes" {</p> } | 60 X:text disable-output-escaping="yes" {</p> } |
61 <dl compact=""> !!; </dl> | 61 <dl compact=""> !!; </dl> |
62 X:text disable-output-escaping="yes" {<p> } | 62 X:text disable-output-escaping="yes" {<p> } |
63 } | 63 } |
64 | 64 |
65 X:template = "tag-name" { <dt> !!; </dt> } | 65 X:template = "tag-name" { <dt> !!; </dt> } |
66 X:template = "tag-desc" { <dd> !!; </dd> } | 66 X:template = "tag-desc" { <dd> !!; </dd> } |
67 | 67 |
68 <!-- legacy list templates --> | 68 <!-- legacy list templates --> |
69 | 69 |
70 X:template = "list[not(@type)]" { <ul> !!; </ul> } | 70 X:template = "list[not(@type)]" { <ul> !!; </ul> } |
71 X:template = "para/list[not(@type)]" { | 71 X:template = "para/list[not(@type)]" { |
72 X:text disable-output-escaping="yes" {</p> } | 72 X:text disable-output-escaping="yes" {</p> } |
73 <ul> !!; </ul> | 73 <ul> !!; </ul> |
74 X:text disable-output-escaping="yes" {<p> } | 74 X:text disable-output-escaping="yes" {<p> } |
75 } | 75 } |
76 X:template = "item" { <li> !!; </li> } | 76 X:template = "item" { <li> !!; </li> } |
77 | 77 |
78 | 78 |
79 X:template = "orderedlist" { <ol> !!; </ol> } | 79 X:template = "orderedlist" { <ol> !!; </ol> } |
80 X:template = "para/orderedlist" { | 80 X:template = "para/orderedlist" { |
81 X:text disable-output-escaping="yes" {</p> } | 81 X:text disable-output-escaping="yes" {</p> } |
82 <ol> !!; </ol> | 82 <ol> !!; </ol> |
83 X:text disable-output-escaping="yes" {<p> } | 83 X:text disable-output-escaping="yes" {<p> } |
84 } | 84 } |
85 X:template = "item" { <li> !!; </li> } | 85 X:template = "item" { <li> !!; </li> } |
86 | 86 |
87 <!-- --> | 87 <!-- --> |
88 | 88 |
89 X:template = "table[@note and @width]" { | 89 X:template = "table[@note and @width]" { |
90 <blockquote><table width="{@width}"> !!; </table></blockquote> | 90 <blockquote><table width="{@width}"> !!; </table></blockquote> |
91 } | 91 } |
92 X:template = "table[@note and not(@width)]" { | 92 X:template = "table[@note and not(@width)]" { |
93 <blockquote><table width="100%"> !!; </table></blockquote> | 93 <blockquote><table width="100%"> !!; </table></blockquote> |
94 } | 94 } |
95 X:template = "table[not(@note) and @width]" { | 95 X:template = "table[not(@note) and @width]" { |
96 <table width="{@width}"> !!; </table> | 96 <table width="{@width}"> !!; </table> |
97 } | 97 } |
98 X:template = "table" { <table width="100%"> !!; </table> } | 98 X:template = "table" { <table width="100%"> !!; </table> } |
99 X:template = "tr" { <tr> !!; </tr> } | 99 X:template = "tr" { <tr> !!; </tr> } |
100 X:template = "td[@width]" { <td width="{@width}"> !!; </td> } | 100 X:template = "td[@width]" { <td width="{@width}"> !!; </td> } |
101 X:template = "td" { <td> !!; </td> } | 101 X:template = "td" { <td> !!; </td> } |
115 X:template = "emphasis" { <strong> !!; </strong> } | 115 X:template = "emphasis" { <strong> !!; </strong> } |
116 | 116 |
117 X:template = "example" { <blockquote><pre> !!; </pre></blockquote> } | 117 X:template = "example" { <blockquote><pre> !!; </pre></blockquote> } |
118 | 118 |
119 X:template = "para/example" { | 119 X:template = "para/example" { |
120 X:text disable-output-escaping="yes" {</p> } | 120 X:text disable-output-escaping="yes" {</p> } |
121 <blockquote><pre> !!; </pre></blockquote> | 121 <blockquote><pre> !!; </pre></blockquote> |
122 X:text disable-output-escaping="yes" {<p> } | 122 X:text disable-output-escaping="yes" {<p> } |
123 } | 123 } |
124 | 124 |
125 X:template = "pathname" { <code> !!; </code> } | 125 X:template = "pathname" { <code> !!; </code> } |
126 | 126 |
127 X:template = "argument" { <code><i> !!; </i></code> } | 127 X:template = "argument" { <code><i> !!; </i></code> } |
128 X:template = "parameter" { <code> !!; </code> } | 128 X:template = "parameter" { <code> !!; </code> } |
129 | 129 |
130 X:template = "header" { | 130 X:template = "header" { |
131 X:text {“} !!; X:text {”} | 131 X:text {“} !!; X:text {”} |
132 } | 132 } |
133 | 133 |
134 X:template = "http-status" { | 134 X:template = "http-status" { |
135 !{@code} X:text { (} !{@text} X:text{)} | 135 !{@code} X:text { (} !{@text} X:text{)} |
136 } | 136 } |
137 | 137 |
138 X:template = "dirname[/*[@lang='he']]" { | 138 X:template = "dirname[/*[@lang='he']]" { |
139 <nobr><span class="ltr"> | 139 <nobr><span class="ltr"> |
140 X:text {“} !!; X:text {”} | 140 X:text {“} !!; X:text {”} |
141 </span></nobr> | 141 </span></nobr> |
142 } | 142 } |
143 | 143 |
144 X:template = "dirname" { | 144 X:template = "dirname" { |
145 <nobr> X:text {“} !!; X:text {”} </nobr> | 145 <nobr> X:text {“} !!; X:text {”} </nobr> |
146 } | 146 } |
147 | 147 |
148 X:template = "url[/*[@lang='he']]" { | 148 X:template = "url[/*[@lang='he']]" { |
149 <i><span class="ltr"> !!; </span></i> | 149 <i><span class="ltr"> !!; </span></i> |
150 } | 150 } |
151 | 151 |
152 X:template = "url" { <i> !!;</i> } | 152 X:template = "url" { <i> !!;</i> } |
153 | 153 |
154 X:template = "value" { <code> !!; </code> } | 154 X:template = "value" { <code> !!; </code> } |