[yelp-xsl] Add missing DocBook 5 alternatives



commit 34c99c9c0fa958ed866a8835510c89f40f63548c
Author: brian m. carlson <sandals crustytoothpaste ath cx>
Date:   Sat Apr 3 23:11:31 2010 +0000

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

 xslt/docbook/common/db-label.xsl           |    2 +-
 xslt/docbook/html/db2html-bibliography.xsl |    3 ++-
 xslt/docbook/html/db2html-block.xsl        |    2 +-
 xslt/docbook/html/db2html-funcsynopsis.xsl |    4 ++--
 xslt/docbook/html/db2html-inline.xsl       |    2 +-
 5 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/xslt/docbook/common/db-label.xsl b/xslt/docbook/common/db-label.xsl
index fcacd11..e9ba60a 100644
--- a/xslt/docbook/common/db-label.xsl
+++ b/xslt/docbook/common/db-label.xsl
@@ -355,7 +355,7 @@ REMARK: Document this mode
 <!-- = db.number.mode % chapter = -->
 <xsl:template mode="db.number.mode" match="chapter | db:chapter">
   <xsl:choose>
-    <xsl:when test="parent::part">
+    <xsl:when test="parent::part or parent::db:part">
       <xsl:call-template name="l10n.gettext">
         <xsl:with-param name="msgid" select="'chapter.number'"/>
         <xsl:with-param name="node" select="."/>
diff --git a/xslt/docbook/html/db2html-bibliography.xsl b/xslt/docbook/html/db2html-bibliography.xsl
index e089305..2635359 100644
--- a/xslt/docbook/html/db2html-bibliography.xsl
+++ b/xslt/docbook/html/db2html-bibliography.xsl
@@ -480,7 +480,8 @@ a bibliography entry.
   <span class="bibliotitle">
     <xsl:call-template name="l10n.gettext">
       <xsl:with-param name="msgid" select="'citetitle.format'"/>
-      <xsl:with-param name="role" select="../self::biblioset/@relation"/>
+      <xsl:with-param name="role" select="../self::biblioset/@relation |
+                                          ../self::db:biblioset/@relation"/>
       <xsl:with-param name="node" select="."/>
       <xsl:with-param name="format" select="true()"/>
     </xsl:call-template>
diff --git a/xslt/docbook/html/db2html-block.xsl b/xslt/docbook/html/db2html-block.xsl
index 725ae00..5b1de02 100644
--- a/xslt/docbook/html/db2html-block.xsl
+++ b/xslt/docbook/html/db2html-block.xsl
@@ -59,7 +59,7 @@ is then used by the CSS for styling.
   <xsl:param name="formal" select="false()"/>
   <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="caption" select="$node/caption | $node/db:caption"/>
 	<xsl:param name="lang" select="$node/@lang|$node/@xml:lang"/>
   <xsl:param name="dir" select="false()"/>
   <xsl:param name="ltr" select="false()"/>
diff --git a/xslt/docbook/html/db2html-funcsynopsis.xsl b/xslt/docbook/html/db2html-funcsynopsis.xsl
index ffbf81b..75e4e9e 100644
--- a/xslt/docbook/html/db2html-funcsynopsis.xsl
+++ b/xslt/docbook/html/db2html-funcsynopsis.xsl
@@ -55,12 +55,12 @@ top of the XML document.  The same processing instruction or inside a
 <!-- == Matched Templates == -->
 
 <!-- = funcdef = -->
-<xsl:template match="funcdef">
+<xsl:template match="funcdef | db:funcdef">
   <xsl:call-template name="db2html.inline"/>
 </xsl:template>
 
 <!-- = funcparams = -->
-<xsl:template match="funcparams">
+<xsl:template match="funcparams | db:funcparams">
   <xsl:text>(</xsl:text>
   <xsl:call-template name="db2html.inline"/>
   <xsl:text>)</xsl:text>
diff --git a/xslt/docbook/html/db2html-inline.xsl b/xslt/docbook/html/db2html-inline.xsl
index 3f977ed..8d28962 100644
--- a/xslt/docbook/html/db2html-inline.xsl
+++ b/xslt/docbook/html/db2html-inline.xsl
@@ -160,7 +160,7 @@ FIXME
 </xsl:template>
 
 <!-- = artpagenums = -->
-<xsl:template match="artpagenums">
+<xsl:template match="artpagenums | db:artpagenums">
   <xsl:call-template name="db2html.inline"/>
 </xsl:template>
 



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