Mercurial > hg > nginx-site
diff xsls/body.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 | 7db449e89e92 |
line wrap: on
line diff
--- a/xsls/body.xsls +++ b/xsls/body.xsls @@ -35,20 +35,14 @@ X:template body (lang) { <tr><td valign="top"> <table width="100%"><tr><td align="{$INDEX_ALIGN}"> - X:if "section[@id]" { - X:for-each "section[@id and @name]" { - <a href="#{@id}"> !{@name} </a><br/> - X:if "@id = 'directives'" { - X:for-each "directive[@name]" { - X:text{     } - <a href="#{@name}"> !{@name} </a><br/> - } + X:for-each "section[@id and @name]" { + <a href="#{@id}"> !{@name} </a><br/> + X:if "@id = 'directives'" { + X:for-each "directive[@name]" { + X:text{     } + <a href="#{@name}"> !{@name} </a><br/> } } - } else { - X:for-each "section[@name]" { - <a href="#{@name}"> !{@title} </a><br/> - } } </td></tr></table>