[Bug 843421] New: epub creating broken
https://bugzilla.novell.com/show_bug.cgi?id=843421 https://bugzilla.novell.com/show_bug.cgi?id=843421#c0 Summary: epub creating broken Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: x86-64 OS/Version: openSUSE 12.3 Status: NEW Severity: Critical Priority: P5 - None Component: Documentation AssignedTo: ke@suse.com ReportedBy: saigkill@opensuse.org QAContact: ke@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 I've tried to build a epub file with daps. I've used: daps -d DC-File epub. Then comes: WARNING: wrong metadata date format. It must be in one of these forms: YYYY, YYYY-MM, or YYYY-MM-DD. Using current date. runtime error: file file:///usr/share/xml/docbook/stylesheet/nwalsh/current/common/common.xsl line 926 element choose Variable 'stylesheet.result.type' has not been declared. xmlXPathCompiledEval: 2 objects left on the stack. make: *** [/home/sascha/Dokumente/Textdocuments/docbook/pactivehandbook-code/en/build/.tmp/epub_plasma-active-startup.xml] Fehler 10 Maybe Normans Stylesheet is broken? Reproducible: Always Steps to Reproduce: 1. daps -d DC-File epub 2. 3. Actual Results: WARNING: wrong metadata date format. It must be in one of these forms: YYYY, YYYY-MM, or YYYY-MM-DD. Using current date. runtime error: file file:///usr/share/xml/docbook/stylesheet/nwalsh/current/common/common.xsl line 926 element choose Variable 'stylesheet.result.type' has not been declared. xmlXPathCompiledEval: 2 objects left on the stack. make: *** [/home/sascha/Dokumente/Textdocuments/docbook/pactivehandbook-code/en/build/.tmp/epub_plasma-active-startup.xml] Fehler 10 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c
Karl Eichwalder
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c1
Thomas Schraitle
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c2
Sascha Manns
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c3
--- Comment #3 from Sascha Manns
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c4
--- Comment #4 from Thomas Schraitle
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c
Thomas Schraitle
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c5
Thomas Schraitle
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c6
--- Comment #6 from Sascha Manns
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c7
Sascha Manns
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c8
Thomas Schraitle
[...] /usr/share/xml/docbook/stylesheet/nwalsh/current//xhtml5/xhtml-profile-docbook.xsl:
So it looks like it is present in the stylesheets.
Perfect!
Then i've tried out your second proposal with xsltproc. Then i'm getting: Mi Okt 02 [21:19:43][sascha@localhost:~/Dokumente/Textdocuments/docbook/pactivehandbook-code/de/xml]$ xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/current/epub/docbook.xsl book_plasma-active_startup.xml Writing OEBPS/bk01-toc.html for book(book.plasma-active.startup) Element include in namespace 'http://www.w3.org/2001/XInclude' encountered in book, but no template matches.
and
It generates two folders.
That's ok.
I've tried out to look the index.html with konqueror. The actual output you can download there: http://saigkill.homelinux.net/pub/epub3.tar.bz2. It looks like the generated index.html is broken because no links to the other content's html aren't visible.
Your document contains XInclude elements (xi:include/) and you've forgot to add the --xinclude option for xsltproc. If you add this option to your command line, the above error will vanish. :) Nevertheless, back to your original problem. Ok, I summarize our finding: * The installed DocBook stylesheets contain the stylesheet.result.type parameter * For some reason, your customization layer breaks Right? So the next step would be to use also xsltproc with your stylesheet and see what happens. Try the above command line (this time with the --xinclude option) and replace the path to the original DocBook stylesheet with your customization layer. Does it work? If not, post a link to your customization layer. :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c9
Sascha Manns
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c10
--- Comment #10 from Thomas Schraitle
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c11
--- Comment #11 from Sascha Manns
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c12
Thomas Schraitle
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c13
Sascha Manns
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c14
--- Comment #14 from Thomas Schraitle
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c15
Thomas Schraitle
https://bugzilla.novell.com/show_bug.cgi?id=843421
https://bugzilla.novell.com/show_bug.cgi?id=843421#c16
--- Comment #16 from Thomas Schraitle
participants (1)
-
bugzilla_noreply@novell.com