FS#22746 - [docbook-xsl] Lack of Epub support breaks asciidocs' a2x
Attached to Project:
Arch Linux
Opened by Brian L. Troutwine (troutwine) - Friday, 04 February 2011, 04:50 GMT
Last edited by Tom Gundersen (tomegun) - Tuesday, 13 November 2012, 13:27 GMT
Opened by Brian L. Troutwine (troutwine) - Friday, 04 February 2011, 04:50 GMT
Last edited by Tom Gundersen (tomegun) - Tuesday, 13 November 2012, 13:27 GMT
|
Details
Description: Typesetting epub documents with asciidocs' a2x
fails utterly, seemingly because Arch's docbook-xsl does not
include the stock docbook-xsl's epub sheets, or does not do
so in the manner of the stock project.
Additional info: * package version(s) extra/docbook-xml 4.5-4 extra/docbook-xsl 1.76.1-1 community/asciidoc * config and/or log files etc. Steps to reproduce: Retrieve adventures-of-sherlock-holmes.txt from the archive here: http://www.methods.co.nz/asciidoc/publishing-ebooks-with-asciidoc.html 2. $ a2x -v adventures-of-sherlock-holmes.txt a2x: args: ['-f', 'epub', '-d', 'book', '-a', 'docinfo', '--epubcheck', '--stylesheet', 'adventures-of-sherlock-holmes.css', '--dblatex-opts', '-P latex.output.revhistory=0', '--xsltproc-opts', '--stringparam part.autolabel 0 --stringparam chapter.autolabel 0 --stringparam section.autolabel.max.depth 0', '--resource', 'underline.png', '-v', 'adventures-of-sherlock-holmes.txt'] a2x: executing: /usr/bin/asciidoc.py --backend docbook --doctype book --attribute docinfo --verbose --out-file /tmp/adventures-of-sherlock-holmes.xml /tmp/adventures-of-sherlock-holmes.txt asciidoc: reading: /etc/asciidoc/asciidoc.conf asciidoc: reading: /etc/asciidoc/asciidoc.conf asciidoc: reading: /tmp/adventures-of-sherlock-holmes.txt asciidoc: reading: /etc/asciidoc/docbook45.conf asciidoc: reading: /etc/asciidoc/filters/source/source-highlight-filter.conf asciidoc: reading: /etc/asciidoc/filters/music/music-filter.conf asciidoc: reading: /etc/asciidoc/filters/code/code-filter.conf asciidoc: reading: /etc/asciidoc/filters/latex/latex-filter.conf asciidoc: reading: /etc/asciidoc/filters/graphviz/graphviz-filter.conf asciidoc: reading: /etc/asciidoc/lang-en.conf asciidoc: writing: /tmp/adventures-of-sherlock-holmes.xml asciidoc: adventures-of-sherlock-holmes.txt: line 23: evaluating: {include:/tmp/adventures-of-sherlock-holmes-docinfo.xml} a2x: executing: xmllint --nonet --noout --valid /tmp/adventures-of-sherlock-holmes.xml a2x: creating /tmp/adventures-of-sherlock-holmes.epub.d a2x: chdir /tmp/adventures-of-sherlock-holmes.epub.d a2x: executing: xsltproc --stringparam part.autolabel 0 --stringparam chapter.autolabel 0 --stringparam section.autolabel.max.depth 0 --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0 --stringparam html.stylesheet adventures-of-sherlock-holmes.css --stringparam toc.section.depth 1 --stringparam chunk.section.depth 0 /etc/asciidoc/docbook-xsl/epub.xsl /tmp/adventures-of-sherlock-holmes.xml warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/epub/docbook.xsl" compilation error: file /etc/asciidoc/docbook-xsl/epub.xsl line 13 element import xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/epub/docbook.xsl a2x: ERROR: xsltproc --stringparam part.autolabel 0 --stringparam chapter.autolabel 0 --stringparam section.autolabel.max.depth 0 --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0 --stringparam html.stylesheet adventures-of-sherlock-holmes.css --stringparam toc.section.depth 1 --stringparam chunk.section.depth 0 /etc/asciidoc/docbook-xsl/epub.xsl /tmp/adventures-of-sherlock-holmes.xml returned non-zero exit status 5 a2x: chdir /tmp Further Discussion: http://groups.google.com/group/asciidoc/browse_thread/thread/fdd5194c09bd4b87 |
This task depends upon
Closed by Tom Gundersen (tomegun)
Tuesday, 13 November 2012, 13:27 GMT
Reason for closing: Fixed
Additional comments about closing: i assume this was fixed some time back?
Tuesday, 13 November 2012, 13:27 GMT
Reason for closing: Fixed
Additional comments about closing: i assume this was fixed some time back?
for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml{,-1_1}; do
install -dm755 ${pkgroot}/${fn}
install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
done
All you need to do is include "epub" in that list, so it reads:
for fn in eclipse epub htmlhelp javahelp lib manpages profiling template website xhtml{,-1_1}; do
And then you rebuild the package. Or you just download the source package I attached with already corrected PKGBUILD. I'm also attaching resulting binary package (architecture independent).
docbook-xsl-1.76.1-1-any.pkg.... (574.1 KiB)