Mercurial > hg > nginx-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
120:da8bd4d2290f | 121:49443032011c |
---|---|
33 </tr> | 33 </tr> |
34 | 34 |
35 <tr><td valign="top"> | 35 <tr><td valign="top"> |
36 | 36 |
37 <table width="100%"><tr><td align="{$INDEX_ALIGN}"> | 37 <table width="100%"><tr><td align="{$INDEX_ALIGN}"> |
38 X:if "section[@id]" { | 38 X:for-each "section[@id and @name]" { |
39 X:for-each "section[@id and @name]" { | 39 <a href="#{@id}"> !{@name} </a><br/> |
40 <a href="#{@id}"> !{@name} </a><br/> | 40 X:if "@id = 'directives'" { |
41 X:if "@id = 'directives'" { | 41 X:for-each "directive[@name]" { |
42 X:for-each "directive[@name]" { | 42 X:text{     } |
43 X:text{     } | 43 <a href="#{@name}"> !{@name} </a><br/> |
44 <a href="#{@name}"> !{@name} </a><br/> | |
45 } | |
46 } | 44 } |
47 } | |
48 } else { | |
49 X:for-each "section[@name]" { | |
50 <a href="#{@name}"> !{@title} </a><br/> | |
51 } | 45 } |
52 } | 46 } |
53 </td></tr></table> | 47 </td></tr></table> |
54 | 48 |
55 !!; | 49 !!; |