]> granicus.if.org Git - docbook-dsssl/commitdiff
Webhelp: Left align titles in nav header. Display for all but the topmost page
authorDavid Cramer <david@thingbag.net>
Sat, 14 Jan 2012 18:46:45 +0000 (18:46 +0000)
committerDavid Cramer <david@thingbag.net>
Sat, 14 Jan 2012 18:46:45 +0000 (18:46 +0000)
xsl/webhelp/xsl/webhelp.xsl

index d9de3f965b3d72a4a4c2b3b7dc5423304c3f7608..bddee03089e740859bb2286da49efec8f56e044d 100644 (file)
@@ -595,19 +595,20 @@ border: none; background: none; font-weight: none; color: none; }
                 src='{$webhelp.common.dir}images/logo.png' alt="{$brandname} Documentation"/>
             </a>
             <!-- Display the page title and the main heading(parent) of it-->
-            <h1 align="center">
-                <xsl:call-template name="get.doc.title"/>
-                <br/>
+            <h1>
+             <xsl:call-template name="get.doc.title"/>
+             <br/>
                 <xsl:choose>
                     <xsl:when
-                            test="count($up) &gt; 0 and generate-id($up) != generate-id($home)">
-                        <xsl:apply-templates select="$up" mode="object.title.markup"/>
-                    </xsl:when>
+                       test="count($up) &gt; 0 and generate-id($up) != generate-id($home)">
+                     <xsl:apply-templates select="$up" mode="object.title.markup"/>
+                   </xsl:when>
+                   <xsl:when test="not(generate-id(.) = generate-id(/*))">
+                     <xsl:apply-templates select="." mode="object.title.markup"/>
+                   </xsl:when>
                     <xsl:otherwise>&#160;</xsl:otherwise>
                 </xsl:choose>
-
-            </h1>
-
+           </h1>
             <!-- Prev and Next links generation-->
             <div id="navheader">
              <xsl:call-template name="user.webhelp.navheader.content"/>