Mercurial > hg > nginx-site
diff xsls/content.xsls @ 607:a8f7b93b0a5f
Allow article sections to be nested.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 26 Jul 2012 11:36:34 +0000 |
parents | 26dc883805ad |
children | 3b0ea2ab2b24 |
line wrap: on
line diff
--- a/xsls/content.xsls Tue Jul 24 10:18:38 2012 +0000 +++ b/xsls/content.xsls Thu Jul 26 11:36:34 2012 +0000 @@ -10,6 +10,11 @@ !!; } + X:template = "section/section[@id and @name]" { + <a name="{@id}" /> <center><h5> !{@name} </h5></center> + !!; + } + X:template = "section[@id and not(@name)]" { <a name="{@id}" /> !!; @@ -20,6 +25,11 @@ !!; } + X:template = "section/section[not(@id) and @name]" { + <center><h5> !{@name} </h5></center> + !!; + } + X:template = "para" { <p> !!; </p> } X:template = "para[@align]" { <p align="{@align}"> !!; </p> }