# 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 --git a/xsls/body.xsls b/xsls/body.xsls --- a/xsls/body.xsls +++ b/xsls/body.xsls @@ -34,17 +34,19 @@ X:template body (lang) { -
- 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}
+ } } } +
} -
!!;