Mercurial > hg > nginx-site
comparison xsls/content.xsls @ 0:61e04fc01027
Initial import of the nginx.org website.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 11 Aug 2011 12:19:13 +0000 |
parents | |
children | 2f7420346aee |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:61e04fc01027 |
---|---|
1 X:stylesheet { | |
2 | |
3 X:template = "section[@name and @title]" { | |
4 <a name="{@name}" /> <center><h4> !{@title} </h4></center> | |
5 !!; | |
6 } | |
7 | |
8 X:template = "section[not(@name) and @title]" { | |
9 <center><h4> !{@title} </h4></center> | |
10 !!; | |
11 } | |
12 | |
13 X:template = "section[not(@name) and not(@title)]" { !!; } | |
14 | |
15 X:template = "para" { <p> !!; </p> } | |
16 | |
17 X:template = "item/para" { <p class="noindent"> !!; </p> } | |
18 | |
19 X:template = "para[@align]" { <p align="{@align}"> !!; </p> } | |
20 | |
21 | |
22 X:template = "programlisting" { <blockquote><pre> !!; </pre></blockquote> } | |
23 | |
24 X:template = "para/programlisting" { | |
25 X:text disable-output-escaping="yes" {</p> } | |
26 <blockquote><pre> !!; </pre></blockquote> | |
27 X:text disable-output-escaping="yes" {<p class="noindent"> } | |
28 } | |
29 | |
30 | |
31 X:template = "note" { <blockquote class="note"> !!; </blockquote> } | |
32 | |
33 X:template = "para/note" { | |
34 X:text disable-output-escaping="yes" {</p> } | |
35 <blockquote class="note"> !!; </blockquote> | |
36 X:text disable-output-escaping="yes" {<p class="noindent"> } | |
37 } | |
38 | |
39 | |
40 X:template = "list" { <ul> !!; </ul> } | |
41 X:template = "item" { <li> !!; </li> } | |
42 | |
43 | |
44 X:template = "orderedlist" { <ol> !!; </ol> } | |
45 X:template = "item" { <li> !!; </li> } | |
46 | |
47 X:template = "table[@note and @width]" { | |
48 <blockquote><table width="{@width}"> !!; </table></blockquote> | |
49 } | |
50 X:template = "table[@note and not(@width)]" { | |
51 <blockquote><table width="100%"> !!; </table></blockquote> | |
52 } | |
53 X:template = "table[not(@note) and @width]" { | |
54 <table width="{@width}"> !!; </table> | |
55 } | |
56 X:template = "table" { <table width="100%"> !!; </table> } | |
57 X:template = "tr" { <tr> !!; </tr> } | |
58 X:template = "td[@width]" { <td width="{@width}"> !!; </td> } | |
59 X:template = "td" { <td> !!; </td> } | |
60 | |
61 X:template = "header" { | |
62 X:text {“} !!; X:text {”} | |
63 } | |
64 | |
65 X:template = "dirname[/*[@lang='he']]" { | |
66 <nobr><span class="ltr"> | |
67 X:text {“} !!; X:text {”} | |
68 </span></nobr> | |
69 } | |
70 | |
71 X:template = "dirname" { <nobr> X:text {“} !!; X:text {”} </nobr> } | |
72 | |
73 X:template = "url[/*[@lang='he']]" { | |
74 <i><span class="ltr"> !!; </span></i> | |
75 } | |
76 | |
77 X:template = "url" { <i> !!;</i> } | |
78 | |
79 X:template = "path" { X:text {“} <code> !!; </code> X:text {”} } | |
80 X:template = "code" { <code> !!; </code> } | |
81 X:template = "i" { <i> !!; </i> } | |
82 X:template = "b" { <b> !!; </b> } | |
83 X:template = "nobr" { <nobr> !!; </nobr> } | |
84 X:template = "mdash" { X:text { — } } | |
85 X:template = "space" { X:text { } } | |
86 X:template = "br" { <br/> } | |
87 | |
88 | |
89 } |