[yelp-xsl] Revert overzealous title handling.



commit 215c718ab9bc353d6cf0c6679a141a6d4b974d4f
Author: brian m. carlson <sandals crustytoothpaste ath cx>
Date:   Sat Mar 13 00:23:16 2010 +0000

    Revert overzealous title handling.
    
    Signed-off-by: brian m. carlson <sandals crustytoothpaste ath cx>

 xslt/docbook/html/db2html-block.xsl |    6 +++---
 xslt/docbook/html/db2html-info.xsl  |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/xslt/docbook/html/db2html-block.xsl b/xslt/docbook/html/db2html-block.xsl
index 758fae7..9521ecb 100644
--- a/xslt/docbook/html/db2html-block.xsl
+++ b/xslt/docbook/html/db2html-block.xsl
@@ -57,7 +57,7 @@ is then used by the CSS for styling.
   <xsl:param name="class" select="''"/>
 	<xsl:param name="verbatim" select="$node[ xml:space = 'preserve']"/>
   <xsl:param name="formal" select="false()"/>
-	<xsl:param name="title" select="$node/title|$node/db:title|$node/db:info/db:title"/>
+	<xsl:param name="title" select="$node/title | $node/db:title"/>
   <xsl:param name="caption" select="$node/caption"/>
 	<xsl:param name="lang" select="$node/@lang|$node/@xml:lang"/>
   <xsl:param name="dir" select="false()"/>
@@ -129,7 +129,7 @@ element.  It is called by *{db2html.block} for formal block elements.
 -->
 <xsl:template name="db2html.block.title">
   <xsl:param name="node" select="."/>
-	<xsl:param name="title" select="$node/title|$node/db:title|$node/db:info/db:title"/>
+	<xsl:param name="title" select="$node/title | $node/db:title"/>
 	<xsl:param name="lang" select="$title/@lang|$title/@xml:lang"/>
   <xsl:param name="dir" select="false()"/>
   <xsl:param name="ltr" select="false()"/>
@@ -215,7 +215,7 @@ element.
       <xsl:with-param name="node" select="$node"/>
     </xsl:call-template>
     <div class="inner">
-			<xsl:apply-templates select="$node/title|$node/db:title|$node/db:info/db:title"/>
+			<xsl:apply-templates select="$node/title | $node/db:title"/>
       <blockquote class="{local-name($node)}">
         <xsl:apply-templates select="$node/node()[not(self::title) and not(self::attribution) and not(self::db:title) and not(self::db:attribution)]"/>
       </blockquote>
diff --git a/xslt/docbook/html/db2html-info.xsl b/xslt/docbook/html/db2html-info.xsl
index db364ca..49a7049 100644
--- a/xslt/docbook/html/db2html-info.xsl
+++ b/xslt/docbook/html/db2html-info.xsl
@@ -578,7 +578,7 @@ REMARK: Describe this mode.
 <xsl:template mode="db2html.info.mode" match="legalnotice | db:legalnotice">
   <div class="division legalnotice">
     <xsl:call-template name="db2html.anchor"/>
-    <xsl:if test="not(title) and not(db:title) and not(db:info/db:title)">
+    <xsl:if test="not(title) and not(db:title)">
       <h2 class="title legalnotice">
         <xsl:call-template name="l10n.gettext">
           <xsl:with-param name="msgid" select="'Legal Notice'"/>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]