[yelp-xsl] Handle titles within info elements for DocBook 5



commit 01781b2a2541c4da1fb9f88d55167e399252f5ce
Author: brian m. carlson <sandals crustytoothpaste ath cx>
Date:   Mon Apr 5 21:35:18 2010 +0000

    Handle titles within info elements for DocBook 5
    
    Signed-off-by: brian m. carlson <sandals crustytoothpaste ath cx>

 xslt/docbook/html/db2html-bibliography.xsl |    1 +
 xslt/docbook/html/db2html-block.xsl        |    3 ++-
 xslt/docbook/html/db2html-division.xsl     |    2 ++
 xslt/docbook/html/db2html-list.xsl         |    8 ++++++--
 xslt/docbook/html/db2html-table.xsl        |    2 +-
 5 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/xslt/docbook/html/db2html-bibliography.xsl b/xslt/docbook/html/db2html-bibliography.xsl
index 2635359..f03eb2a 100644
--- a/xslt/docbook/html/db2html-bibliography.xsl
+++ b/xslt/docbook/html/db2html-bibliography.xsl
@@ -636,6 +636,7 @@ a bibliography entry.
     <xsl:call-template name="db.chunk.depth-of-chunk"/>
   </xsl:param>
   <xsl:call-template name="db2html.division.div">
+    <xsl:with-param name="info" select="db:info"/>
     <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
     <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
   </xsl:call-template>
diff --git a/xslt/docbook/html/db2html-block.xsl b/xslt/docbook/html/db2html-block.xsl
index 5b1de02..d67c6b9 100644
--- a/xslt/docbook/html/db2html-block.xsl
+++ b/xslt/docbook/html/db2html-block.xsl
@@ -216,7 +216,8 @@ element.
       <xsl:with-param name="node" select="$node"/>
     </xsl:call-template>
     <div class="inner">
-			<xsl:apply-templates select="$node/title | $node/db:title"/>
+      <xsl:apply-templates select="$node/title | $node/db:title |
+                                   $node/db:info/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-division.xsl b/xslt/docbook/html/db2html-division.xsl
index 95b19aa..6181411 100644
--- a/xslt/docbook/html/db2html-division.xsl
+++ b/xslt/docbook/html/db2html-division.xsl
@@ -1178,6 +1178,7 @@ REMARK: Describe this template
     </xsl:when>
     <xsl:otherwise>
       <xsl:call-template name="db2html.division.div">
+        <xsl:with-param name="info" select="db:info"/>
         <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
         <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
       </xsl:call-template>
@@ -1231,6 +1232,7 @@ REMARK: Describe this template
   <xsl:call-template name="db2html.division.div">
     <xsl:with-param name="entries" select="glossentry | db:glossentry"/>
     <xsl:with-param name="divisions" select="bibliography | db:bibliography"/>
+    <xsl:with-param name="info" select="db:info"/>
     <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
     <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
   </xsl:call-template>
diff --git a/xslt/docbook/html/db2html-list.xsl b/xslt/docbook/html/db2html-list.xsl
index c397df7..3f52efc 100644
--- a/xslt/docbook/html/db2html-list.xsl
+++ b/xslt/docbook/html/db2html-list.xsl
@@ -42,7 +42,7 @@ REMARK: Describe this module
       </xsl:attribute>
     </xsl:if>
     <xsl:call-template name="db2html.anchor"/>
-    <xsl:apply-templates select="title"/>
+    <xsl:apply-templates select="title | db:title | db:info/db:title"/>
     <dl class="glosslist">
       <xsl:apply-templates select="glossentry | db:glossentry"/>
     </dl>
@@ -60,6 +60,7 @@ REMARK: Describe this module
       </xsl:attribute>
     </xsl:if>
     <xsl:call-template name="db2html.anchor"/>
+    <xsl:apply-templates select="db:info/db:title"/>
     <xsl:apply-templates select="*[not(self::listitem) and not(self::db:listitem)]"/>
     <ul>
       <xsl:attribute name="class">
@@ -134,6 +135,7 @@ REMARK: Describe this module
       </xsl:attribute>
     </xsl:if>
     <xsl:call-template name="db2html.anchor"/>
+    <xsl:apply-templates select="db:info/db:title"/>
     <xsl:apply-templates select="*[not(self::listitem) and not(self::db:listitem)]"/>
     <ol>
       <xsl:attribute name="class">
@@ -272,7 +274,7 @@ REMARK: Describe this module
       </xsl:attribute>
     </xsl:if>
     <xsl:call-template name="db2html.anchor"/>
-    <xsl:apply-templates select="title | db:title"/>
+    <xsl:apply-templates select="title | db:title | db:info/db:title"/>
     <xsl:apply-templates select="seglistitem | db:seglistitem"/>
   </div>
 </xsl:template>
@@ -467,6 +469,7 @@ REMARK: Describe this module
         <xsl:with-param name="node" select=".."/>
       </xsl:call-template>
     </xsl:if>
+    <xsl:apply-templates select="db:info/db:title"/>
     <xsl:apply-templates/>
   </dt>
 </xsl:template>
@@ -482,6 +485,7 @@ REMARK: Describe this module
       </xsl:attribute>
     </xsl:if>
     <xsl:call-template name="db2html.anchor"/>
+    <xsl:apply-templates select="db:info/db:title"/>
     <xsl:apply-templates select="*[not(self::varlistentry) and
                                    not(self::db:varlistentry)]"/>
     <dl class="terms variablelist">
diff --git a/xslt/docbook/html/db2html-table.xsl b/xslt/docbook/html/db2html-table.xsl
index 5348994..caccad2 100644
--- a/xslt/docbook/html/db2html-table.xsl
+++ b/xslt/docbook/html/db2html-table.xsl
@@ -1017,7 +1017,7 @@ REMARK: This template needs to be explained in detail, but I forgot how it works
       </xsl:attribute>
     </xsl:if>
     <xsl:call-template name="db2html.anchor"/>
-    <xsl:apply-templates select="title | db:title"/>
+    <xsl:apply-templates select="title | db:title | db:info/db:title"/>
     <!-- FIXME: I have no idea what I'm supposed to do with textobject -->
     <xsl:choose>
       <xsl:when test="graphic | mediaobject">



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