[yelp-xsl] [db2html-footnote] Adding DocBook 5 support



commit e9d900e109aebebcb7ae462956915aaedc0b8c65
Author: brian m. carlson <sandals crustytoothpaste ath cx>
Date:   Sat Mar 20 17:45:45 2010 +0000

    [db2html-footnote] Adding DocBook 5 support
    
    Signed-off-by: brian m. carlson <sandals crustytoothpaste ath cx>

 xslt/docbook/html/db2html-footnote.xsl |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/xslt/docbook/html/db2html-footnote.xsl b/xslt/docbook/html/db2html-footnote.xsl
index d7a069c..c20842c 100644
--- a/xslt/docbook/html/db2html-footnote.xsl
+++ b/xslt/docbook/html/db2html-footnote.xsl
@@ -17,6 +17,7 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 -->
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
+                xmlns:db="http://docbook.org/ns/docbook";
                 xmlns="http://www.w3.org/1999/xhtml";
                 version="1.0">
 
@@ -43,6 +44,9 @@ REMARK: Describe this template
       <xsl:when test="$node/@id">
         <xsl:value-of select="$node/@id"/>
       </xsl:when>
+      <xsl:when test="$node/@xml:id">
+        <xsl:value-of select="$node/@xml:id"/>
+      </xsl:when>
       <xsl:otherwise>
         <xsl:value-of select="generate-id($node)"/>
       </xsl:otherwise>
@@ -54,6 +58,9 @@ REMARK: Describe this template
       <xsl:when test="$node/@id">
         <xsl:value-of select="$node/@id"/>
       </xsl:when>
+      <xsl:when test="$node/@xml:id">
+        <xsl:value-of select="$node/@xml:id"/>
+      </xsl:when>
       <xsl:otherwise>
         <xsl:text>-note-</xsl:text>
         <xsl:value-of select="generate-id($node)"/>
@@ -85,6 +92,9 @@ REMARK: Describe this template
       <xsl:when test="$node/@id">
         <xsl:value-of select="$node/@id"/>
       </xsl:when>
+      <xsl:when test="$node/@xml:id">
+        <xsl:value-of select="$node/@xml:id"/>
+      </xsl:when>
       <xsl:otherwise>
         <xsl:text>-note-</xsl:text>
         <xsl:value-of select="generate-id($node)"/>
@@ -98,6 +108,9 @@ REMARK: Describe this template
       <xsl:when test="$node/@id">
         <xsl:value-of select="$node/@id"/>
       </xsl:when>
+      <xsl:when test="$node/@xml:id">
+        <xsl:value-of select="$node/@xml:id"/>
+      </xsl:when>
       <xsl:otherwise>
         <xsl:value-of select="generate-id($node)"/>
       </xsl:otherwise>
@@ -130,7 +143,7 @@ REMARK: Describe this template
   <xsl:param name="depth_of_chunk">
     <xsl:call-template name="db.chunk.depth-of-chunk"/>
   </xsl:param>
-  <xsl:variable name="notes" select="$node//footnote" />
+  <xsl:variable name="notes" select="$node//footnote | $node//db:footnote" />
   <xsl:if test="count($notes) != 0">
     <xsl:call-template name="db2html.footnote.footer.sibling">
       <xsl:with-param name="node" select="$node"/>



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