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	Thu Oct 20 15:31:16 2011 +0000
+++ b/xsls/body.xsls	Thu Oct 20 20:27:51 2011 +0000
@@ -35,20 +35,14 @@
     <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{&#160;&#160;&#160;&#160;&#160;}
-                        <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{&#160;&#160;&#160;&#160;&#160;}
+                    <a href="#{@name}"> !{@name} </a><br/>
                 }
             }
-        } else {
-            X:for-each "section[@name]" {
-                <a href="#{@name}"> !{@title} </a><br/>
-            }
         }
         </td></tr></table>