[yelp-xsl] Add omitted DocBook 5 alternatives.



commit 4bee5f4be2029e9b574bee837a7dca63371374b5
Author: brian m. carlson <sandals crustytoothpaste ath cx>
Date:   Tue Mar 30 18:12:17 2010 +0000

    Add omitted DocBook 5 alternatives.
    
    Signed-off-by: brian m. carlson <sandals crustytoothpaste ath cx>

 xslt/docbook/html/db2html-autotoc.xsl     |    2 +-
 xslt/docbook/html/db2html-block.xsl       |    5 +++--
 xslt/docbook/html/db2html-cmdsynopsis.xsl |    4 ++--
 xslt/docbook/html/db2html-list.xsl        |    4 ++--
 4 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/xslt/docbook/html/db2html-autotoc.xsl b/xslt/docbook/html/db2html-autotoc.xsl
index f4e0717..a436d1a 100644
--- a/xslt/docbook/html/db2html-autotoc.xsl
+++ b/xslt/docbook/html/db2html-autotoc.xsl
@@ -240,7 +240,7 @@ For a description of the other parameters, see *{db2html.autotoc}.
       </xsl:otherwise>
     </xsl:choose>
     <xsl:if test="$labels">
-      <xsl:if test="refnamediv/refpurpose">
+      <xsl:if test="refnamediv/refpurpose or db:refnamediv/db:refpurpose">
         <xsl:call-template name="l10n.gettext">
           <xsl:with-param name="msgid" select="' â?? '"/>
         </xsl:call-template>
diff --git a/xslt/docbook/html/db2html-block.xsl b/xslt/docbook/html/db2html-block.xsl
index c6c31d6..725ae00 100644
--- a/xslt/docbook/html/db2html-block.xsl
+++ b/xslt/docbook/html/db2html-block.xsl
@@ -57,7 +57,8 @@ 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"/>
+  <xsl:param name="title" select="$node/title | $node/db:title |
+                                  $node/db:info/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()"/>
@@ -219,7 +220,7 @@ element.
       <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>
-      <xsl:apply-templates select="$node/attribution"/>
+      <xsl:apply-templates select="$node/attribution | $node/db:attribution"/>
     </div>
   </div>
 </xsl:template>
diff --git a/xslt/docbook/html/db2html-cmdsynopsis.xsl b/xslt/docbook/html/db2html-cmdsynopsis.xsl
index b58f758..1ff58c2 100644
--- a/xslt/docbook/html/db2html-cmdsynopsis.xsl
+++ b/xslt/docbook/html/db2html-cmdsynopsis.xsl
@@ -166,10 +166,10 @@ REMARK: Describe this param
   </xsl:param>
   <div>
     <xsl:choose>
-      <xsl:when test="@lang">
+      <xsl:when test="@lang or @xml:lang">
         <xsl:attribute name="dir">
           <xsl:call-template name="l10n.direction">
-            <xsl:with-param name="lang" select="@lang"/>
+            <xsl:with-param name="lang" select="@lang | @xml:lang"/>
           </xsl:call-template>
         </xsl:attribute>
       </xsl:when>
diff --git a/xslt/docbook/html/db2html-list.xsl b/xslt/docbook/html/db2html-list.xsl
index 020b03d..c397df7 100644
--- a/xslt/docbook/html/db2html-list.xsl
+++ b/xslt/docbook/html/db2html-list.xsl
@@ -160,7 +160,7 @@ REMARK: Describe this module
         </xsl:attribute>
       </xsl:if>
       <!-- FIXME: @inheritnum -->
-      <xsl:apply-templates select="listitem"/>
+      <xsl:apply-templates select="listitem | db:listitem"/>
     </ol>
   </div>
 </xsl:template>
@@ -232,7 +232,7 @@ REMARK: Describe this module
 </xsl:template>
 
 <!-- = seglistitem = -->
-<xsl:template match="seglistitem">
+<xsl:template match="seglistitem | db:seglistitem">
   <xsl:param name="position"
               select="count(preceding-sibling::seglistitem) +
                       count(preceding-sibling::db:seglistitem) + 1"/>



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