Docbook xsl:import: unable to load docbook.xsl

From FVue
Jump to: navigation, search

Problem

When I try to generate docbook documentation from an asciidoc file using a2x, it's giving me errors:

$ a2x -f xhtml test.txt
I/O error : Attempt to load network entity
http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl
warning: failed to load external entity
"http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"
compilation error: file /etc/asciidoc/docbook-xsl/xhtml.xsl line 13 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl
a2x: failed: xsltproc --stringparam html.stylesheet "./docbook-xsl.css"
--stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam
admon.textlabel 1 --stringparam admon.graphics 0 --nonet
"/etc/asciidoc/docbook-xsl/xhtml.xsl"
"/mnt/proj/bashCompletion/doc/asciidoc/test.txt" >"test.html"

Solution

After installing package `docbook-xsl', everything works fine:

$ sudo apt-get install docbook-xsl
...
$ a2x -f xhtml test.txt
$

Environment

  • Ubuntu 8.04

Comments

blog comments powered by Disqus