From: Bob Stayton Date: Mon, 9 Aug 2010 18:13:06 +0000 (+0000) Subject: Fix bug 2840768 sidebar without title inserts empty b tag. X-Git-Tag: release/1.79.1~6^2~855 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9bee315ff91d8ebae1096baba315beab8d91ae93;p=docbook-dsssl Fix bug 2840768 sidebar without title inserts empty b tag. --- diff --git a/xsl/html/block.xsl b/xsl/html/block.xsl index 93bdf75fe..bcc3748ce 100644 --- a/xsl/html/block.xsl +++ b/xsl/html/block.xsl @@ -238,13 +238,7 @@
- - - - - - - +
diff --git a/xsl/html/titlepage.templates.xml b/xsl/html/titlepage.templates.xml index 926b3c31f..cae516026 100644 --- a/xsl/html/titlepage.templates.xml +++ b/xsl/html/titlepage.templates.xml @@ -1,5 +1,5 @@ @@ -106,9 +106,9 @@ + t:force="1" + t:named-template="division.title" + param:node="ancestor-or-self::part[1]"/> <subtitle/> <corpauthor/> <authorgroup/> @@ -205,8 +205,8 @@ <t:titlepage-content t:side="recto"> <!-- uncomment this if you want refentry titlepages <title t:force="1" - t:named-template="refentry.title" - param:node="ancestor-or-self::refentry[1]"/> + t:named-template="refentry.title" + param:node="ancestor-or-self::refentry[1]"/> --> </t:titlepage-content> @@ -227,9 +227,9 @@ <t:titlepage t:element="dedication" t:wrapper="div" class="titlepage"> <t:titlepage-content t:side="recto"> <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::dedication[1]"/> + t:force="1" + t:named-template="component.title" + param:node="ancestor-or-self::dedication[1]"/> <subtitle/> </t:titlepage-content> @@ -251,9 +251,9 @@ <t:titlepage t:element="acknowledgements" t:wrapper="div" class="titlepage"> <t:titlepage-content t:side="recto"> <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::acknowledgements[1]"/> + t:force="1" + t:named-template="component.title" + param:node="ancestor-or-self::acknowledgements[1]"/> <subtitle/> </t:titlepage-content> @@ -590,9 +590,9 @@ <t:titlepage t:element="bibliography" t:wrapper="div" class="titlepage"> <t:titlepage-content t:side="recto"> <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::bibliography[1]"/> + t:force="1" + t:named-template="component.title" + param:node="ancestor-or-self::bibliography[1]"/> <subtitle/> </t:titlepage-content> @@ -614,9 +614,9 @@ <t:titlepage t:element="glossary" t:wrapper="div" class="titlepage"> <t:titlepage-content t:side="recto"> <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::glossary[1]"/> + t:force="1" + t:named-template="component.title" + param:node="ancestor-or-self::glossary[1]"/> <subtitle/> </t:titlepage-content> @@ -638,9 +638,9 @@ <t:titlepage t:element="index" t:wrapper="div" class="titlepage"> <t:titlepage-content t:side="recto"> <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::index[1]"/> + t:force="1" + t:named-template="component.title" + param:node="ancestor-or-self::index[1]"/> <subtitle/> </t:titlepage-content> @@ -662,9 +662,31 @@ <t:titlepage t:element="setindex" t:wrapper="div" class="titlepage"> <t:titlepage-content t:side="recto"> <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::setindex[1]"/> + t:force="1" + t:named-template="component.title" + param:node="ancestor-or-self::setindex[1]"/> + <subtitle/> + </t:titlepage-content> + + <t:titlepage-content t:side="verso"> + </t:titlepage-content> + + <t:titlepage-separator> + </t:titlepage-separator> + + <t:titlepage-before t:side="recto"> + </t:titlepage-before> + + <t:titlepage-before t:side="verso"> + </t:titlepage-before> +</t:titlepage> + +<!-- ==================================================================== --> +<t:titlepage t:element="sidebar" t:wrapper="div" class="titlepage"> + <t:titlepage-content t:side="recto"> + <title + t:named-template="formal.object.heading" + param:object="ancestor-or-self::sidebar[1]"/> <subtitle/> </t:titlepage-content>