On Mon, Jan 31, 2011 at 5:59 PM, Stuart Rackham <[email protected]> wrote:
>
>
> On 01/02/11 11:13, Brian Troutwine wrote:
>>
>> Following Stuart's advise, the error I am presented with is:
>>
>> 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
>>
>> Presumably this is related to the recent trouble's SourceForge has
>> been having. I _do_ have the docbook 1.76.1, which
>> /etc/asciidoc/docbook-xsl/epub.xsl assures me will be preferred. I do
>> not have any epub/docbook.xsl bundled with my local docbook, however.
>
> The URL is fine. I've just successfully built the
> adventures-of-sherlock-holmes.epub on stock Xubuntu 10.04 with AsciiDoc
> 8.6.3 so the problem has to be something to do with your stylesheets or
> stylesheets catalog configuration. Can you generate PDF? i.e.
>
> a2x -v -fpdf adventures-of-sherlock-holmes.txt
I can, quite successfully. I'm using an up-to-date Arch Linux; my
AsciiDoc and Docbook versions were mentioned previously.
> Or is it just EPUB that's the problem?
Seemingly.
$ 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: deleting /tmp/adventures-of-sherlock-holmes.epub.d
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
> BTW, the a2x -fepub -dbook options are redundant, all the correct options
> are included in the adventures-of-sherlock-holmes.txt source file header so
> this is all that's required to generate EPUB is:
>
> a2x adventures-of-sherlock-holmes.txt
Ah, thanks.
> Cheers, Stuart
>
>
>
>>
>> Is 1.76.1 too old?
>
> No, I use 1.75.2 on Xubuntu 10.04.
>
>
>>
>> On Mon, Jan 31, 2011 at 4:34 PM, Brian Troutwine<[email protected]>
>> wrote:
>>>
>>> Thank you.
>>>
>>> On Mon, Jan 31, 2011 at 4:00 PM, Stuart Rackham<[email protected]>
>>> wrote:
>>>>
>>>>
>>>> On 31/01/11 13:54, Brian L. Troutwine wrote:
>>>>>
>>>>> I am new to asciidoc and am unable to build epub files from the
>>>>> document sources available on the website. For this discussion I am
>>>>> using the Sherlock Holmes text from here:
>>>>>
>>>>> http://www.methods.co.nz/asciidoc/publishing-ebooks-with-asciidoc.html#X3
>>>>>
>>>>> When I issue the following command:
>>>>>
>>>>>> a2x -fepub -dbook adventures-of-sherlock-holmes.txt
>>>>>
>>>>> I receive:
>>>>>
>>>>>> 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
>>>>>
>>>>> How might I debug this? I am using asciidoc 8.6.3.
>>>>
>>>> $ man xsltproc
>>>>
>>>> 1. Look under DIAGNOSTICS section: exit code 5 = Error in the stylesheet
>>>>
>>>> 2. Cut an paste the failing xsltproc command and include the xsltproc
>>>> --verbose option to get an idea of where the stylesheets are failing.
>>>>
>>>>
>>>> Cheers, Stuart
>>>>
>>>>
>>>>>
>>>>> Thank you,
>>>>> Brian Troutwine
>>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups
>>>> "asciidoc" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected].
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/asciidoc?hl=en.
>>>>
>>>>
>>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/asciidoc?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.