$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r75837 - trunk/tools/boostbook/xsl
From: dnljms_at_[hidden]
Date: 2011-12-07 04:18:02
Author: danieljames
Date: 2011-12-07 04:18:01 EST (Wed, 07 Dec 2011)
New Revision: 75837
URL: http://svn.boost.org/trac/boost/changeset/75837
Log:
Boostbook: Only put table/hr in header if it has content.
Also fixed option name for 'boost.defaults' in comment.
Text files modified: 
   trunk/tools/boostbook/xsl/navbar.xsl |    54 ++++++++++++++++++++------------------- 
   1 files changed, 28 insertions(+), 26 deletions(-)
Modified: trunk/tools/boostbook/xsl/navbar.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/navbar.xsl	(original)
+++ trunk/tools/boostbook/xsl/navbar.xsl	2011-12-07 04:18:01 EST (Wed, 07 Dec 2011)
@@ -14,7 +14,7 @@
  
    <!--
       boost.defaults:
-        *custom  - only use explicitly set parameters
+        *none    - only use explicitly set parameters
          Boost   - use standard boost settings, can be overridden
    -->
    <xsl:param name = "boost.defaults" select = "'none'"/>
@@ -87,33 +87,35 @@
       <xsl:variable name = "home" select = "/*[1]"/>
       <xsl:variable name = "up"   select = "parent::*"/>
 
-      <table cellpadding = "2" width = "100%"><tr>
-         <xsl:if test = "$nav.border = 'Boost'">
-            <xsl:attribute name = "class">boost-head</xsl:attribute>
-         </xsl:if>
-
-         <td valign = "top">
+      <xsl:if test = "boolean(normalize-space($boost.image.src)) or $nav.layout != 'none'">
+         <table cellpadding = "2" width = "100%"><tr>
             <xsl:if test = "$nav.border = 'Boost'">
-               <xsl:attribute name = "style">background-color: white; width: 50%;</xsl:attribute>
+               <xsl:attribute name = "class">boost-head</xsl:attribute>
             </xsl:if>
-            <xsl:if test = "boolean(normalize-space($boost.image.src))">
-               <img alt="{$boost.image.alt}" width="{$boost.image.w}" height="{$boost.image.h}">
-                   <xsl:attribute name="src">
-                       <xsl:call-template name="href.target.relative">
-                           <xsl:with-param name="target" select="$boost.image.src"/>
-                       </xsl:call-template>
-                   </xsl:attribute>
-               </img>
-            </xsl:if>
-         </td><xsl:choose>
-            <xsl:when test = "$nav.layout = 'horizontal'">
-               <xsl:call-template name = "header.navdata-horiz"/>
-            </xsl:when><xsl:when test = "$nav.layout = 'vertical'">
-               <xsl:call-template name = "header.navdata-vert"/>
-            </xsl:when>
-         </xsl:choose>
-      </tr></table>
-      <hr/>
+
+            <td valign = "top">
+               <xsl:if test = "$nav.border = 'Boost'">
+                  <xsl:attribute name = "style">background-color: white; width: 50%;</xsl:attribute>
+               </xsl:if>
+               <xsl:if test = "boolean(normalize-space($boost.image.src))">
+                  <img alt="{$boost.image.alt}" width="{$boost.image.w}" height="{$boost.image.h}">
+                      <xsl:attribute name="src">
+                          <xsl:call-template name="href.target.relative">
+                              <xsl:with-param name="target" select="$boost.image.src"/>
+                          </xsl:call-template>
+                      </xsl:attribute>
+                  </img>
+               </xsl:if>
+            </td><xsl:choose>
+               <xsl:when test = "$nav.layout = 'horizontal'">
+                  <xsl:call-template name = "header.navdata-horiz"/>
+               </xsl:when><xsl:when test = "$nav.layout = 'vertical'">
+                  <xsl:call-template name = "header.navdata-vert"/>
+               </xsl:when>
+            </xsl:choose>
+         </tr></table>
+         <hr/>
+      </xsl:if>
       <xsl:choose>
          <xsl:when test = "$nav.flow = 'DocBook'">
             <table width = "100%" class = "navheader">