Mercurial > hg > nginx-site
comparison xsls/content.xsls @ 32:2bcfb5f75e06
Supporting new format of <module> and <section>:
<module name="..." ...> and <section id="..." name="...">
Old format should be eventually removed.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 30 Sep 2011 13:13:21 +0000 |
parents | 9d3403f5204d |
children | 666e85596e3c |
comparison
equal
deleted
inserted
replaced
31:dc74e3a8f324 | 32:2bcfb5f75e06 |
---|---|
1 X:stylesheet { | 1 X:stylesheet { |
2 | |
3 X:template = "section[@id and @name]" { | |
4 <a name="{@id}" /> <center><h4> !{@name} </h4></center> | |
5 !!; | |
6 } | |
7 | |
8 X:template = "section[not(@id) and @name]" { | |
9 <center><h4> !{@name} </h4></center> | |
10 !!; | |
11 } | |
12 | |
13 X:template = "section[not(@id) and not(@name)]" { !!; } | |
14 | |
15 <!-- legacy section templates --> | |
2 | 16 |
3 X:template = "section[@name and @title]" { | 17 X:template = "section[@name and @title]" { |
4 <a name="{@name}" /> <center><h4> !{@title} </h4></center> | 18 <a name="{@name}" /> <center><h4> !{@title} </h4></center> |
5 !!; | 19 !!; |
6 } | 20 } |
9 <center><h4> !{@title} </h4></center> | 23 <center><h4> !{@title} </h4></center> |
10 !!; | 24 !!; |
11 } | 25 } |
12 | 26 |
13 X:template = "section[not(@name) and not(@title)]" { !!; } | 27 X:template = "section[not(@name) and not(@title)]" { !!; } |
28 | |
29 <!-- --> | |
14 | 30 |
15 X:template = "para" { <p> !!; </p> } | 31 X:template = "para" { <p> !!; </p> } |
16 | 32 |
17 X:template = "item/para" { <p class="noindent"> !!; </p> } | 33 X:template = "item/para" { <p class="noindent"> !!; </p> } |
18 | 34 |