[xml/sgml-pkgs] Bug#245343: docbook2x: biblio.xsl generates wrong <I> element

Rafael Laboissiere Rafael Laboissiere <rafael@debian.org>, 245343@bugs.debian.org
Thu, 22 Apr 2004 19:14:47 +0200


--ikeVEW9yuYc//A+q
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: docbook2x
Version: 0.8.2-1
Severity: normal

This is an upstream problem.  When db2x_xsltproc uses xslt/texi/biblio.xsl,
it generates a wrong <I></I> element in the Texi-XML output file.  Later,
when processing the file with db2x_texixml, error messages like this one
happen:

    $ db2x_texixml input.txml 
    /usr/bin/db2x_texixml::3963:I: unexpected element

The trivial patch attached below fixes the problem.    

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux laboiss0 2.4.19-686 #1 Mon Nov 18 23:59:03 EST 2002 i686
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages docbook2x depends on:
ii  libc6                       2.3.2.ds1-10 GNU C Library: Shared libraries an
ii  libxml2                     2.6.8-1      GNOME XML library
ii  libxslt1.1                  1.1.5-1      XSLT processing library - runtime 
ii  zlib1g                      1:1.2.1-3    compression library - runtime

-- no debconf information



--ikeVEW9yuYc//A+q
Content-Type: text/plain; charset=us-ascii
Content-Description: Patch element <I>
Content-Disposition: attachment; filename=d2

--- biblio.xsl-orig	2004-04-22 18:19:00.000000000 +0200
+++ biblio.xsl	2004-04-22 19:12:17.000000000 +0200
@@ -146,7 +146,7 @@
       </xsl:call-template>
     </xsl:when>
     <xsl:otherwise>
-      <I><xsl:apply-templates/></I>
+      <i><xsl:apply-templates/></i>
     </xsl:otherwise>
   </xsl:choose>
   <xsl:call-template name="gentext-dingbat"><xsl:with-param name="key" select="'bibliography.item.separator'"/></xsl:call-template>
@@ -160,7 +160,7 @@
 </xsl:template>
 
 <xsl:template match="citetitle" mode="bibliography.mode">
-    <I><xsl:apply-templates mode="bibliography.mode"/></I>
+    <i><xsl:apply-templates mode="bibliography.mode"/></i>
     <xsl:call-template name="gentext-dingbat"><xsl:with-param name="key" select="'bibliography.item.separator'"/></xsl:call-template>
 </xsl:template>
 
@@ -476,7 +476,7 @@
       </xsl:call-template>
     </xsl:when>
     <xsl:otherwise>
-      <I><xsl:apply-templates/></I>
+      <i><xsl:apply-templates/></i>
     </xsl:otherwise>
   </xsl:choose>
 </xsl:template>

--ikeVEW9yuYc//A+q--