comparison xsls/body.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 b2db67ca29cc
children 6c0532e6982f
comparison
equal deleted inserted replaced
606:cb43695220b2 607:a8f7b93b0a5f
64 64
65 X:if "@toc = 'yes' and section[@id and @name]" { 65 X:if "@toc = 'yes' and section[@id and @name]" {
66 <table width="100%"><tr><td align="{$INDEX_ALIGN}"> 66 <table width="100%"><tr><td align="{$INDEX_ALIGN}">
67 X:for-each "section[@id and @name]" { 67 X:for-each "section[@id and @name]" {
68 <a href="#{@id}"> !{@name} </a><br/> 68 <a href="#{@id}"> !{@name} </a><br/>
69 X:for-each "section[@id and @name]" {
70 X:text{&#160;&#160;&#160;&#160;&#160;}
71 <a href="#{@id}"> !{@name} </a><br/>
72 }
69 X:if "@id = 'directives'" { 73 X:if "@id = 'directives'" {
70 X:for-each "directive[@name]" { 74 X:for-each "directive[@name]" {
71 X:text{&#160;&#160;&#160;&#160;&#160;} 75 X:text{&#160;&#160;&#160;&#160;&#160;}
72 <a href="#{@name}"> !{@name} </a><br/> 76 <a href="#{@name}"> !{@name} </a><br/>
73 } 77 }