On 04/02/11 12:51, Brian Troutwine wrote:
On Thu, Feb 3, 2011 at 5:05 PM, Stuart Rackham<[email protected]>  wrote:


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

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>


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



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


Cheers, Stuart

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

Reply via email to