Package: docbook-xsl-ns
Version: 1.76.1+dfsg-1
Severity: normal
Tags: upstream

Hello,

In DocBook 5, the element book/bookinfo no longer exists, and is
replaced by book/info. The current XSLT stylesheet for DocBook to EPUB
still uses bookinfo, which has the effect of ignoring it! In practice,
it produces content.opf files that reference index.html in the spine but
not in the manifest.

Here is a patch to correct that. I tested it with a document of mine
<http://formation-debian.via.ecp.fr/> and it seems to work rather fine.

Regards,

-- 
Tanguy Ortolo
--- docbook.xsl	2010-11-01 21:31:09.000000000 +0100
+++ /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/epub/docbook.xsl	2012-03-28 14:10:28.270238268 +0200
@@ -83,7 +83,7 @@
       <xsl:when test="/*[not(self::d:book)][not(d:sect1) or not(d:section)]">
         <xsl:text>1</xsl:text>
       </xsl:when>
-      <xsl:when test="/d:book[*[last()][self::d:bookinfo]]|d:book[d:bookinfo]">
+      <xsl:when test="/d:book[*[last()][self::d:info]]|d:book[d:info]">
         <xsl:text>1</xsl:text>
       </xsl:when>
       <xsl:when test="/d:book[*[last()][self::d:info]]|d:book[d:info]">
@@ -773,8 +773,8 @@
 
       <!-- TODO: be nice to have a id="titlepage" here -->
       <xsl:apply-templates select="//d:part|
-                                   //d:book[*[last()][self::d:bookinfo]]|
-                                   //d:book[d:bookinfo]|
+                                   //d:book[*[last()][self::d:info]]|
+                                   //d:book[d:info]|
                                    /d:set|
                                    /d:set/d:book|
                                    //d:reference|
@@ -1066,8 +1066,8 @@
   <xsl:template
       match="d:set|
             d:book[parent::d:set]|
-            d:book[*[last()][self::d:bookinfo]]|
-            d:book[d:bookinfo]|
+            d:book[*[last()][self::d:info]]|
+            d:book[d:info]|
             d:article|
             d:part|
             d:reference|

Reply via email to