Package: docbook-xsl
Version: 1.75.0+dfsg-2
Severity: normal

The files generated cannot be opened by okular (with okular-backend-extra).
This doesn't seem to be a problem with epub files downloaded from the web.
Other more official programs seems to have problems too.

 $ zcat /usr/share/doc/docbook-xsl/examples/foo.1.example_manpage.xml.gz > \
foo.xml
 $ dbtoepub foo.xml
 $ einfo -vvvv foo.epub
 libepub (II):   opening foo.epub
 libepub (II):   building ocf struct
 libepub (II):   looking for mime type
 libepub (VV):   --------- Begin mimetype
 application/epub+zip
 libepub (VV):   --------- End mimetype
 libepub (II):   mimetype found application/epub+zip
 libepub (II):   parsing container file META-INF/container.xml
 libepub (VV):   --------- Begin META-INF/container.xml
 <?xml version="1.0" encoding="utf-8" standalone="no"?>
 <odfc:container xmlns:odfc="urn:oasis:names:tc:opendocument:xmlns:container" 
version="1.0">
   <odfc:rootfiles> 
     <odfc:rootfile full-path="OEBPS/content.opf" 
media-type="application/oebps-package+xml"/>
   </odfc:rootfiles>
 </odfc:container>

 libepub (VV):   --------- End META-INF/container.xml
 libepub (WW):   type application/oebps-package+xml for root not found
 $ einfo -p foo.epub

So I would guess that it is not a really a okular related problem, but more
a problem of dbtoepub. The difference to downloadable epubs seems to be the
information in META-INF/container.xml. So if you remove the :odfc respective
the odfc: from the file it works perfectly. Otherwise the
application/oebps-package+xml is not known for the viewer.


--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.29-1-amd64

Debian Release: squeeze/sid
  500 unstable        ftp.debian.org

--- Package information. ---
Depends       (Version) | Installed
=======================-+-===========
xml-core      (>= 0.12) | 0.12


Recommends                  (Version) | Installed
=====================================-+-=============
docbook-xml              (>= 4.1.2-4) | 4.5-6
docbook-xsl-doc-html                  | 1.75.0-1
 OR docbook-xsl-doc-pdf               | 
 OR docbook-xsl-doc-text              | 
 OR docbook-xsl-doc                   | 
ruby                                  | 4.2
xsltproc                              | 1.1.24-2
zip                                   | 3.0-1


Suggests               (Version) | Installed
================================-+-===========
libsaxon-java                    | 1:6.5.5-5
libxalan2-java                   | 2.7.1-2
docbook-xsl-saxon                | 
fop                              | 1:0.95.dfsg-4
xalan                            | 1.10-4



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to