Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
ePub creation error, stock Sherlock Holmes source
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  15 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Brian L. Troutwine  
View profile  
 More options Jan 30 2011, 7:54 pm
From: "Brian L. Troutwine" <br...@troutwine.us>
Date: Sun, 30 Jan 2011 16:54:29 -0800 (PST)
Local: Sun, Jan 30 2011 7:54 pm
Subject: ePub creation error, stock Sherlock Holmes source
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.htm...

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.

Thank you,
Brian Troutwine


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stuart Rackham  
View profile  
 More options Jan 31 2011, 4:00 pm
From: Stuart Rackham <srack...@gmail.com>
Date: Tue, 01 Feb 2011 10:00:23 +1300
Local: Mon, Jan 31 2011 4:00 pm
Subject: Re: ePub creation error, stock Sherlock Holmes source

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.htm...

> 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Troutwine  
View profile  
 More options Jan 31 2011, 4:34 pm
From: Brian Troutwine <br...@troutwine.us>
Date: Mon, 31 Jan 2011 16:34:24 -0500
Local: Mon, Jan 31 2011 4:34 pm
Subject: Re: ePub creation error, stock Sherlock Holmes source
Thank you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Troutwine  
View profile  
 More options Jan 31 2011, 5:13 pm
From: Brian Troutwine <br...@troutwine.us>
Date: Mon, 31 Jan 2011 17:13:35 -0500
Local: Mon, Jan 31 2011 5:13 pm
Subject: Re: ePub creation error, stock Sherlock Holmes source
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.

Is 1.76.1 too old?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stuart Rackham  
View profile  
 More options Jan 31 2011, 5:59 pm
From: Stuart Rackham <srack...@gmail.com>
Date: Tue, 01 Feb 2011 11:59:45 +1300
Local: Mon, Jan 31 2011 5:59 pm
Subject: Re: ePub creation error, stock Sherlock Holmes source

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

Or is it just EPUB that's the problem?

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

Cheers, Stuart

> Is 1.76.1 too old?

No, I use 1.75.2 on Xubuntu 10.04.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Troutwine  
View profile  
 More options Jan 31 2011, 6:10 pm
From: Brian Troutwine <br...@troutwine.us>
Date: Mon, 31 Jan 2011 18:10:32 -0500
Local: Mon, Jan 31 2011 6:10 pm
Subject: Re: ePub creation error, stock Sherlock Holmes source

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Troutwine  
View profile  
 More options Feb 3 2011, 3:38 pm
From: Brian Troutwine <br...@troutwine.us>
Date: Thu, 3 Feb 2011 15:38:33 -0500
Local: Thurs, Feb 3 2011 3:38 pm
Subject: Re: ePub creation error, stock Sherlock Holmes source

I can generate a PDF. So, what can I do to get asciidoc working? How
do I check the correctness of my stylesheets catalog, for instance?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stuart Rackham  
View profile  
 More options Feb 3 2011, 5:05 pm
From: Stuart Rackham <srack...@gmail.com>
Date: Fri, 04 Feb 2011 11:05:59 +1300
Local: Thurs, Feb 3 2011 5:05 pm
Subject: Re: ePub creation error, stock Sherlock Holmes source

On 04/02/11 09:38, Brian Troutwine wrote:

> I can generate a PDF. So, what can I do to get asciidoc working? How
> do I check the correctness of my stylesheets catalog, for instance?

Run the xsltproc command from the command-line with the --verbose option, this
should give you more information about the problem:

asciidoc --backend docbook  --doctype book --attribute docinfo
adventures-of-sherlock-holmes.txt

xsltproc --verbose --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

Cheers, Stuart


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Troutwine  
View profile  
 More options Feb 3 2011, 6:51 pm
From: Brian Troutwine <br...@troutwine.us>
Date: Thu, 3 Feb 2011 18:51:40 -0500
Local: Thurs, Feb 3 2011 6:51 pm
Subject: Re: ePub creation error, stock Sherlock Holmes source

The result:

creating dictionary for stylesheet
reusing dictionary from /etc/asciidoc/docbook-xsl/epub.xsl for stylesheet
xsltParseStylesheetProcess : found stylesheet
xsltPrecomputeStylesheet: removing ignorable blank node
Reusing dictionary for document
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
Reusing dictionary for document
creating dictionary for stylesheet
reusing dictionary from /etc/asciidoc/docbook-xsl/common.xsl for stylesheet
xsltParseStylesheetProcess : found stylesheet
xsltPrecomputeStylesheet: removing ignorable blank node
<snip>

That does not tell me more than the above errors, I'm afraid. xsltproc
is attempting to load
http://docbook.sourceforge.net/release/xsl/current/epub/docbook.xsl
but cannot. What does that mean? I can correctly access the stylesheet
from the same computer otherwise:

$ curl http://docbook.sourceforge.net/release/xsl/current/epub/docbook.xsl
| wc -l
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 74068  100 74068    0     0   139k      0 --:--:-- --:--:-- --:--:--  193k
1690


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stuart Rackham  
View profile   Translate to Translated (View Original)
 More options Feb 3 2011, 7:57 pm
From: Stuart Rackham <srack...@gmail.com>
Date: Fri, 04 Feb 2011 13:57:58 +1300
Local: Thurs, Feb 3 2011 7:57 pm
Subject: Re: ePub creation error, stock Sherlock Holmes source

On 04/02/11 12:51, Brian Troutwine wrote:

This is what I get (the two outputs diverge a the blank line that I inserted):

8<----------------
creating dictionary for stylesheet
reusing dictionary from
/home/srackham/projects/asciidoc/trunk/docbook-xsl/epub.xsl for stylesheet
xsltParseStylesheetProcess : found stylesheet
xsltPrecomputeStylesheet: removing ignorable blank node
Reusing dictionary for document

creating dictionary for stylesheet
reusing dictionary from
file:///usr/share/xml/docbook/stylesheet/docbook-xsl/epub/docbook.xsl for stylesheet
xsltParseStylesheetProcess : found stylesheet
8<----------------

On my Xubuntu 10.04 system:
The http://docbook.sourceforge.net/release/xsl/ entry in the global XML catalog
/etc/xml/catalog points to the global DocBook XSL catalog
/etc/xml/docbook-xsl.xml which points to
/usr/share/xml/docbook/stylesheet/docbook-xsl/catalog.xml
which rewrites
http://docbook.sourceforge.net/release/xsl/current/epub/docbook.xsl to
./epub/docbook.xsl (i.e.
/usr/share/xml/docbook/stylesheet/docbook-xsl/epub/docbook.xsl).

The upshot is that
http://docbook.sourceforge.net/release/xsl/current/epub/docbook.xsl in the
import element is translated to the local file
/usr/share/xml/docbook/stylesheet/docbook-xsl/epub/docbook.xsl
i.e. the local stylesheet file, not the URI, is loaded.

Now this is just the way it works on my Xubuntu 10.04 system, though yours
should be quite close. You may want to check that your DocBook XSL install also
updated the global catalogs correctly because installing stylesheets locally
also requires the global catalog is updated accordingly (normally handled
automatically by package installer scripts). I'm almost out of my depth here so
I can't be much more help I'm afraid.

Cheers, Stuart


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stuart Rackham  
View profile  
 More options Feb 3 2011, 8:10 pm
From: Stuart Rackham <srack...@gmail.com>
Date: Fri, 04 Feb 2011 14:10:03 +1300
Local: Thurs, Feb 3 2011 8:10 pm
Subject: Re: ePub creation error, stock Sherlock Holmes source
One more thing, you may also like to try DocBook XSL Stylesheets 1.75.2 (the
version I'm using).

Stuart

On 04/02/11 12:51, Brian Troutwine wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Troutwine  
View profile  
 More options Feb 3 2011, 11:33 pm
From: Brian Troutwine <br...@troutwine.us>
Date: Thu, 3 Feb 2011 23:33:36 -0500
Local: Thurs, Feb 3 2011 11:33 pm
Subject: Re: ePub creation error, stock Sherlock Holmes source

On Thu, Feb 3, 2011 at 8:10 PM, Stuart Rackham <srack...@gmail.com> wrote:
> One more thing, you may also like to try DocBook XSL Stylesheets 1.75.2 (the
> version I'm using).

It looks rather like Arch Linux's docbook xsl bundle is broken: epub
simply isn't included with the other, global stylesheets.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian L. Troutwine  
View profile  
 More options Feb 3 2011, 11:50 pm
From: "Brian L. Troutwine" <br...@troutwine.us>
Date: Thu, 3 Feb 2011 20:50:51 -0800 (PST)
Local: Thurs, Feb 3 2011 11:50 pm
Subject: Re: ePub creation error, stock Sherlock Holmes source
On Feb 3, 11:33 pm, Brian Troutwine <br...@troutwine.us> wrote:

> On Thu, Feb 3, 2011 at 8:10 PM, Stuart Rackham <srack...@gmail.com> wrote:
> > One more thing, you may also like to try DocBook XSL Stylesheets 1.75.2 (the
> > version I'm using).

> It looks rather like Arch Linux's docbook xsl bundle is broken: epub
> simply isn't included with the other, global stylesheets.

For future reference: https://bugs.archlinux.org/task/22746


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Francis Shanahan  
View profile  
 More options Mar 1 2011, 11:13 am
From: Francis Shanahan <francisshana...@gmail.com>
Date: Tue, 1 Mar 2011 08:13:01 -0800 (PST)
Local: Tues, Mar 1 2011 11:13 am
Subject: Re: ePub creation error, stock Sherlock Holmes source
You probably figured this out already but you can just download the
epub/docbook.xsl from the latest docbook-xsl release and copy it over
manually. Look in /etc/xml/config to determine where it should go.
Details are described here:

http://francisshanahan.com/index.php/2011/fixing-epub-problem-docbook...

regards,
-fs

On Feb 3, 11:50 pm, "Brian L. Troutwine" <br...@troutwine.us> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stuart Rackham  
View profile  
 More options Mar 2 2011, 9:34 pm
From: Stuart Rackham <srack...@gmail.com>
Date: Thu, 03 Mar 2011 15:34:23 +1300
Local: Wed, Mar 2 2011 9:34 pm
Subject: Re: ePub creation error, stock Sherlock Holmes source
Thanks for publishing that helpful tip Francis.
I've linked it to the AsciiDoc epub web page:
http://www.methods.co.nz/asciidoc/publishing-ebooks-with-asciidoc.html

Cheers, Stuart

On 02/03/11 05:13, Francis Shanahan wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »