[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 <ke@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|ke@suse.com |thomas.schraitle@suse.com -- 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#c1 Thomas Schraitle <thomas.schraitle@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |saigkill@opensuse.org --- Comment #1 from Thomas Schraitle <thomas.schraitle@suse.com> 2013-10-01 13:59:59 UTC --- Thank you for your report. It seems you use an older docbook-xsl-stylesheet package. The parameter stylesheet.result.type is available in 1.78.1 and later. Could you check which version do you have? -- 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#c2 Sascha Manns <saigkill@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|saigkill@opensuse.org | --- Comment #2 from Sascha Manns <saigkill@opensuse.org> 2013-10-01 15:40:13 UTC --- Hi Thomas, i have the 1.78.1 package installed. Inside my DC File i have tried out: STYLEROOT="/usr/share/xml/docbook/stylesheet/openslx/paguide" then STYLEROOT="/usr/share/xml/docbook/stylesheet/suse" then STYLEROOT="/usr/share/xml/docbook/stylesheet/nwalsh/current" and FB_STYLEROOT="/usr/share/xml/docbook/stylesheet/suse" But i'm getting the same error. Also i have tried a daps clean (a empty build/.tmp seen). After that i'm getting the same error. Then i reinstalled the doxbook-xsl-stylesheet package. But the same effect. -- 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#c3 --- Comment #3 from Sascha Manns <saigkill@opensuse.org> 2013-10-01 17:10:05 UTC --- Hi Thomas, i have the 1.78.1 package installed. Inside my DC File i have tried out: STYLEROOT="/usr/share/xml/docbook/stylesheet/openslx/paguide" then STYLEROOT="/usr/share/xml/docbook/stylesheet/suse" then STYLEROOT="/usr/share/xml/docbook/stylesheet/nwalsh/current" and FB_STYLEROOT="/usr/share/xml/docbook/stylesheet/suse" But i'm getting the same error. Also i have tried a daps clean (a empty build/.tmp seen). After that i'm getting the same error. Then i reinstalled the doxbook-xsl-stylesheet package. But the same effect. -- 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#c4 --- Comment #4 from Thomas Schraitle <thomas.schraitle@suse.com> 2013-10-02 06:30:41 UTC --- Hmn, ok. Let us elaborate it a bit more: 1. This is a stylesheet error; daps has nothing to do with this nor it is able to handle such an error. Futhermore, it has nothing to do with the process itself nor your XML files. :) 2. For some reason, the parameter stylesheet.result.type is not known. 3. It looks like an upstream bug. Ok, I did a grep over the DocBook stylesheets. Here is the shell excerpt and the output what I got: $ DB=/usr/share/xml/docbook/stylesheet/nwalsh/current/ $ grep stylesheet.result.type $DB/{common,xhtml5}/*.xsl /usr/share/xml/docbook/stylesheet/nwalsh/current//common/common.xsl: and $olist[@role = $stylesheet.result.type]"> /usr/share/xml/docbook/stylesheet/nwalsh/current//common/common.xsl: <xsl:if test="@role = $stylesheet.result.type and /usr/share/xml/docbook/stylesheet/nwalsh/current//common/common.xsl: not(preceding-sibling::*[@role = $stylesheet.result.type])"> /usr/share/xml/docbook/stylesheet/nwalsh/current//common/common.xsl: <!-- Accept 'html' for $stylesheet.result.type = 'xhtml' --> /usr/share/xml/docbook/stylesheet/nwalsh/current//common/common.xsl: and $stylesheet.result.type = 'xhtml' /usr/share/xml/docbook/stylesheet/nwalsh/current//common/common.xsl: and $object/@role='tex' and $stylesheet.result.type = 'fo' /usr/share/xml/docbook/stylesheet/nwalsh/current//common/common.xsl: and $stylesheet.result.type = 'fo' /usr/share/xml/docbook/stylesheet/nwalsh/current//xhtml5/xhtml-docbook.xsl:<xsl:param name="stylesheet.result.type" select="'xhtml'"/> /usr/share/xml/docbook/stylesheet/nwalsh/current//xhtml5/xhtml-profile-docbook.xsl:<xsl:param name="stylesheet.result.type" select="'xhtml'"/> Could you compare it with the output above? One workaround is to add the missing parameter into your customization layer: <xsl:param name="stylesheet.result.type" select="'xhtml'"/> This should solve the above error. -- 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 Thomas Schraitle <thomas.schraitle@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- 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#c5 Thomas Schraitle <thomas.schraitle@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |saigkill@opensuse.org --- Comment #5 from Thomas Schraitle <thomas.schraitle@suse.com> 2013-10-02 06:52:22 UTC --- Let's try another approach. Try to transform your XML file with the original EPUB stylesheet like this: $ xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/current/epub/docbook.xsl YOUR_XML_FILE.xml If you get the same error, you can stop here. There must be something fishy with your installation. I and someone else tested the above command and it worked. If the above command passes this test, try it with your customization layer. Just replace the .../epub/docbook.xsl filename with your XSLT file and try it again. What happens? -- 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#c6 --- Comment #6 from Sascha Manns <saigkill@opensuse.org> 2013-10-02 20:19:53 UTC --- Hi Thomas, i've tried out the first proposal. I'm getting: Mi Okt 02 [21:16:25][sascha@localhost:~]$ DB=/usr/share/xml/docbook/stylesheet/nwalsh/current/ Mi Okt 02 [21:16:28][sascha@localhost:~]$ grep stylesheet.result.type $DB/{common,xhtml5}/*.xsl /usr/share/xml/docbook/stylesheet/nwalsh/current//common/common.xsl: and $olist[@role = $stylesheet.result.type]"> /usr/share/xml/docbook/stylesheet/nwalsh/current//common/common.xsl: <xsl:if test="@role = $stylesheet.result.type and /usr/share/xml/docbook/stylesheet/nwalsh/current//common/common.xsl: not(preceding-sibling::*[@role = $stylesheet.result.type])"> /usr/share/xml/docbook/stylesheet/nwalsh/current//common/common.xsl: <!-- Accept 'html' for $stylesheet.result.type = 'xhtml' --> /usr/share/xml/docbook/stylesheet/nwalsh/current//common/common.xsl: and $stylesheet.result.type = 'xhtml' /usr/share/xml/docbook/stylesheet/nwalsh/current//common/common.xsl: and $object/@role='tex' and $stylesheet.result.type = 'fo' /usr/share/xml/docbook/stylesheet/nwalsh/current//common/common.xsl: and $stylesheet.result.type = 'fo' /usr/share/xml/docbook/stylesheet/nwalsh/current//xhtml5/xhtml-docbook.xsl:<xsl:param name="stylesheet.result.type" select="'xhtml'"/> /usr/share/xml/docbook/stylesheet/nwalsh/current//xhtml5/xhtml-profile-docbook.xsl:<xsl:param name="stylesheet.result.type" select="'xhtml'"/> So it looks like it is present in the stylesheets. 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. Element include in namespace 'http://www.w3.org/2001/XInclude' encountered in part, but no template matches. Element include in namespace 'http://www.w3.org/2001/XInclude' encountered in part, but no template matches. Element include in namespace 'http://www.w3.org/2001/XInclude' encountered in part, but no template matches. Element include in namespace 'http://www.w3.org/2001/XInclude' encountered in part, but no template matches. Element include in namespace 'http://www.w3.org/2001/XInclude' encountered in part, but no template matches. Writing OEBPS/pt01.html for part Element include in namespace 'http://www.w3.org/2001/XInclude' encountered in part, but no template matches. Writing OEBPS/pt02.html for part Element include in namespace 'http://www.w3.org/2001/XInclude' encountered in book, but no template matches. Element include in namespace 'http://www.w3.org/2001/XInclude' encountered in book, but no template matches. Element include in namespace 'http://www.w3.org/2001/XInclude' encountered in book, but no template matches. Writing OEBPS/ix01.html for index Writing OEBPS/index.html for book(book.plasma-active.startup) Writing OEBPS/toc.ncx Writing OEBPS/content.opf Writing META-INF/container.xml It generates two folders. 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. -- 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#c7 Sascha Manns <saigkill@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|saigkill@opensuse.org | --- Comment #7 from Sascha Manns <saigkill@opensuse.org> 2013-10-02 20:20:26 UTC --- removed NEEDINFO -- 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#c8 Thomas Schraitle <thomas.schraitle@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |saigkill@opensuse.org --- Comment #8 from Thomas Schraitle <thomas.schraitle@suse.com> 2013-10-07 05:59:35 UTC --- Hi Sascha, (In reply to comment #6)
[...] /usr/share/xml/docbook/stylesheet/nwalsh/current//xhtml5/xhtml-profile-docbook.xsl:<xsl:param name="stylesheet.result.type" select="'xhtml'"/>
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 <saigkill@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|saigkill@opensuse.org | --- Comment #9 from Sascha Manns <saigkill@opensuse.org> 2013-10-07 06:20:58 UTC --- Aah ok. That works (with --include). Now it generates content without any error :-) As docbook.xsl in /usr/share/xml/docbook/stylesheet/openslx/epub i have just: <?xml version="1.0" encoding="UTF-8"?> <!-- Anpassungsdatei linkt zu den SUSE Stylesheets --> <xsl:stylesheet version="1.0" xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="l"> <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/epub/docbook.xsl"/> <xsl:import href="../../suse/epub/docbook.xsl"/> </xsl:stylesheet> So it points to yours... -- 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#c10 --- Comment #10 from Thomas Schraitle <thomas.schraitle@suse.com> 2013-10-07 06:29:34 UTC --- Ok, that's good news! :) There is something fishy in your docbook.xsl customization layer. :) The xsl:import of the _original_ stylesheet is not necessary as "suse/epub/docbook.xsl" includes it too. So better remove the first xsl:import line, but leave the second with "../../suse/epub/docbook.xsl" as it is. Probably this was the problem with the missing parameter. If you did that, try it with daps again. -- 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#c11 --- Comment #11 from Sascha Manns <saigkill@opensuse.org> 2013-10-08 12:36:00 UTC --- Hi Thomas, yes i have changed it. Now my customation layer just includes the suse/epub/docbook.xsl. Also the original susebooks.css is added to my epub folder. Now i have tried out it again: xmllint --noent --postvalid --noout --xinclude /home/sascha/Dokumente/Textdocuments/docbook/pactivehandbook-code/de/build/profiled/noprofile/book_plasma-active_startup.xml ##<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ##>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> touch /home/sascha/Dokumente/Textdocuments/docbook/pactivehandbook-code/de/build/profiled/noprofile/.validate ##<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< All files are valid. /usr/share/daps/make/common.mk:671 Die Target-Datei »/home/sascha/Dokumente/Textdocuments/docbook/pactivehandbook-code/de/build/.profiled/noprofile/.validate« wurde erfolgreich aktualisiert. Die Datei »/home/sascha/Dokumente/Textdocuments/docbook/pactivehandbook-code/de/build/.profiled/noprofile/.validate« ist jünger als das davon abhängige Ziel »/home/sascha/Dokumente/Textdocuments/docbook/pactivehandbook-code/de/build/.tmp/epub_plasma-active-startup.xml«. /usr/share/daps/make/common.mk:1982 Das Target »/home/sascha/Dokumente/Textdocuments/docbook/pactivehandbook-code/de/build/.tmp/epub_plasma-active-startup.xml« muss neu erzeugt werden. Invoking recipe from /usr/share/daps/make/common.mk:1986 to update target `/home/sascha/Dokumente/Textdocuments/docbook/pactivehandbook-code/de/build/.tmp/epub_plasma-active-startup.xml'. ##>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> xsltproc --xinclude --output /home/sascha/Dokumente/Textdocuments/docbook/pactivehandbook-code/de/build/tmp/epub_plasma-active-startup.xml /usr/share/daps/daps-xslt/epub/db2db.xsl \ /home/sascha/Dokumente/Textdocuments/docbook/pactivehandbook-code/de/build/profiled/noprofile/book_plasma-active_startup.xml ##<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 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. /usr/share/daps/make/common.mk:1982: *** [/home/sascha/Dokumente/Textdocuments/docbook/pactivehandbook-code/de/build/.tmp/epub_plasma-active-startup.xml] Fehler 10 #0 /home/sascha/Dokumente/Textdocuments/docbook/pactivehandbook-code/de/build/tmp/epub_plasma-active-startup.xml at /usr/share/daps/make/common.mk:1982 #1 /home/sascha/Dokumente/Textdocuments/docbook/pactivehandbook-code/de/build/tmp/epub_plasma-active-startup/OEBPS/index.html at /usr/share/daps/make/common.mk:1993 #2 /home/sascha/Dokumente/Textdocuments/docbook/pactivehandbook-code/de/build/plasma-active-startup/plasma-active-startup.epub at /usr/share/daps/make/common.mk:2033 #3 epub-check at /usr/share/daps/make/common.mk:2058 #4 epub at /usr/share/daps/make/common.mk:600 Command-line invocation: "/usr/bin/remake -j1 --debug=b -f /usr/share/daps/make/common.mk epub" Maybe any trouble by using daps'sdb2db.xsl? -- 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#c12 Thomas Schraitle <thomas.schraitle@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |saigkill@opensuse.org --- Comment #12 from Thomas Schraitle <thomas.schraitle@suse.com> 2013-10-18 12:32:18 UTC --- I forgot to add, if you have the following warning message: WARNING: wrong metadata date format. It must be in one of these forms: YYYY, YYYY-MM, or YYYY-MM-DD. Using current date. then you need to add the correct date in the <pubdate> or <date> elements. Have you checked this? -- 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#c13 Sascha Manns <saigkill@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|saigkill@opensuse.org | --- Comment #13 from Sascha Manns <saigkill@opensuse.org> 2013-10-18 15:48:34 UTC --- Hmm. I've changed the dbtimestamp inside <date> to <?dbtimestamp format="Y-m-d"?>. But then comes the same error. Is my choosen timeformat right for the needs? -- 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#c14 --- Comment #14 from Thomas Schraitle <thomas.schraitle@suse.com> 2013-10-21 06:31:45 UTC --- Created an attachment (id=564188) --> (http://bugzilla.novell.com/attachment.cgi?id=564188) Customize date in opf.metadata mode Customization layer to correctly process date with dbtimestamp PI -- 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#c15 Thomas Schraitle <thomas.schraitle@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |saigkill@opensuse.org --- Comment #15 from Thomas Schraitle <thomas.schraitle@suse.com> 2013-10-21 06:38:01 UTC --- Ahh, this explains everything! Currently, the EPUB2 stylesheet doesn't support the dbtimestamp PI. I've created a customization layer which should fix this. The current implementation (see comment#14) does the following: 1. Test, if a dbtimestamp is available inside date. 2. If there is such a PI, call the "datetime.format" template and pass the current date and a format parameter. The format parameter is a constant value of "Y-m-d". Normally, this would be localized, but in this case the EPUB specification enforces an ISO date. 3. If there is no PI, use the normalized string inside date. Please test. -- 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#c16 --- Comment #16 from Thomas Schraitle <thomas.schraitle@suse.com> 2013-10-21 06:59:31 UTC --- Hint: Added the above fix in the DocBook upstream project, see revision 9823: http://sourceforge.net/p/docbook/code/9823 -- 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.
participants (1)
-
bugzilla_noreply@novell.com