Mercurial > hg > nginx-site
diff 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 |
line wrap: on
line diff
--- a/xsls/content.xsls Fri Sep 30 12:56:05 2011 +0000 +++ b/xsls/content.xsls Fri Sep 30 13:13:21 2011 +0000 @@ -1,5 +1,19 @@ X:stylesheet { + X:template = "section[@id and @name]" { + <a name="{@id}" /> <center><h4> !{@name} </h4></center> + !!; + } + + X:template = "section[not(@id) and @name]" { + <center><h4> !{@name} </h4></center> + !!; + } + + X:template = "section[not(@id) and not(@name)]" { !!; } + + <!-- legacy section templates --> + X:template = "section[@name and @title]" { <a name="{@name}" /> <center><h4> !{@title} </h4></center> !!; @@ -12,6 +26,8 @@ X:template = "section[not(@name) and not(@title)]" { !!; } + <!-- --> + X:template = "para" { <p> !!; </p> } X:template = "item/para" { <p class="noindent"> !!; </p> }