# HG changeset patch # User Ruslan Ermilov # Date 1319206817 0 # Node ID 8beaff4b3b6b1e0a737b492c0f6daf932d5d2d58 # Parent 3052a722a1a420ab646f99e0cf2057934b876c5c Empty table was generated if document has no sections, or they are all anonymous. diff -r 3052a722a1a4 -r 8beaff4b3b6b xsls/body.xsls --- a/xsls/body.xsls Fri Oct 21 14:13:38 2011 +0000 +++ b/xsls/body.xsls Fri Oct 21 14:20:17 2011 +0000 @@ -34,17 +34,19 @@ -
- X:for-each "section[@id and @name]" { - !{@name}
- X:if "@id = 'directives'" { - X:for-each "directive[@name]" { - X:text{     } - !{@name}
+ X:if "section[@name]" { +
+ X:for-each "section[@id and @name]" { + !{@name}
+ X:if "@id = 'directives'" { + X:for-each "directive[@name]" { + X:text{     } + !{@name}
+ } } } +
} -
!!;