Mercurial > hg > nginx-site
comparison xsls/content.xsls @ 121:49443032011c
Unified <section> syntax for "article" and "module" documents.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 20 Oct 2011 20:27:51 +0000 |
parents | 40eec261c2a6 |
children | d4133c439eeb |
comparison
equal
deleted
inserted
replaced
120:da8bd4d2290f | 121:49443032011c |
---|---|
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 <!-- legacy section templates --> | 13 X:template = "section[not(@id) and @name]" { |
14 | 14 <center><h4> !{@name} </h4></center> |
15 X:template = "section[not(@id) and @name and @title]" { | |
16 <a name="{@name}" /> <center><h4> !{@title} </h4></center> | |
17 !!; | 15 !!; |
18 } | 16 } |
19 | |
20 X:template = "section[not(@id) and not(@name) and @title]" { | |
21 <center><h4> !{@title} </h4></center> | |
22 !!; | |
23 } | |
24 | |
25 X:template = "section[not(@id) and not(@name) and not(@title)]" { !!; } | |
26 | |
27 <!-- --> | |
28 | 17 |
29 X:template = "para" { <p> !!; </p> } | 18 X:template = "para" { <p> !!; </p> } |
30 | 19 |
31 X:template = "para[@align]" { <p align="{@align}"> !!; </p> } | 20 X:template = "para[@align]" { <p align="{@align}"> !!; </p> } |
32 | 21 |