Tong wrote:
On Mar 19, 6:19 pm, Stuart Rackham <[email protected]> wrote:
Single page documents can be done with FOP, my post to this
threadhttp://groups.google.com/group/asciidoc/browse_frm/thread/972b9af1ec1...
contains two attachements: an example letter.txt file and the letter.pdf it
generated with this command:
a2x --fop letter.txt
I got a2x ERROR when trying it:
$ a2x -v --fop letter.txt
[...]
a2x: executing: xmllint --nonet --noout --valid /vars/tmp/letter.xml
a2x: chdir /vars/tmp
a2x: executing: xsltproc --nonet --stringparam callout.graphics 1 --
stringparam navig.graphics 0 --stringparam admon.textlabel 0 --
stringparam admon.graphics 1 --stringparam admon.graphics.path /etc/
asciidoc/images/icons// --stringparam callout.graphics.path /etc/
asciidoc/images/icons//callouts/ --stringparam navig.graphics.path /
etc/asciidoc/images/icons// --output /vars/tmp/letter.fo /etc/asciidoc/
docbook-xsl/fo.xsl /vars/tmp/letter.xml
I/O error : Attempt to load network entity
http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl
warning: failed to load external entity "http://
docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"
compilation error: file /etc/asciidoc/docbook-xsl/fo.xsl line 16
element import
xsl:import : unable to load
http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl
a2x: ERROR: xsltproc --nonet --stringparam callout.graphics 1 --
stringparam navig.graphics 0 --stringparam admon.textlabel 0 --
stringparam admon.graphics 1 --stringparam admon.graphics.path /etc/
asciidoc/images/icons// --stringparam callout.graphics.path /etc/
asciidoc/images/icons//callouts/ --stringparam navig.graphics.path /
etc/asciidoc/images/icons// --output /vars/tmp/letter.fo /etc/asciidoc/
docbook-xsl/fo.xsl /vars/tmp/letter.xml returned non-zero exit status
5
what could be wrong?
xsltproc is failing to "load network entity"
(http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl and
http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl) which is
strange because the --nonet option is set (see the xsltproc(1) man page). In any
case both those entities are accessible over the Internet. Looks like an
xsltproc issue.
Cheers, Stuart
$ apt-cache policy asciidoc xsltproc
asciidoc:
Installed: 8.5.2-1
Candidate: 8.5.2-1
Version table:
*** 8.5.2-1 0
300 http://debian.mirror.rafal.ca testing/main Packages
50 http://debian.mirror.rafal.ca unstable/main Packages
100 /var/lib/dpkg/status
xsltproc:
Installed: 1.1.26-2
Candidate: 1.1.26-2
Version table:
*** 1.1.26-2 0
300 http://debian.mirror.rafal.ca testing/main Packages
50 http://debian.mirror.rafal.ca unstable/main Packages
100 /var/lib/dpkg/status
--
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.