On 23/10/10 09:34, gerd wrote:
Hi gurus,

I was using asciidoc and a2x for very long time on Linux (Debian). I
now bought a Mac and I'm getting the following error (also when I use
files that were correctly compiled on my Linux system).

The error is:

a2x: ERROR: xmllint --nonet --noout --valid file.xml returned non-zero
exit status 4

Using the "--verbose" option is showing the complete procedure.

a2x -f pdf --verbose week4_dq2.txt
a2x: args: ['-f', 'pdf', '--verbose', 'week4_dq2.txt']
a2x: executing: /usr/local/Cellar/asciidoc/8.6.1/bin/asciidoc.py --
backend docbook  --verbose  --out-file /Users/gerd/Documents/tmp/
week4_dq2.xml /Users/gerd/Documents/tmp/week4_dq2.txt
asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.1/etc/asciidoc/
asciidoc.conf
asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.1/etc/asciidoc/
docbook.conf
asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.1/etc/asciidoc/
filters/code/code-filter.conf
asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.1/etc/asciidoc/
filters/graphviz/graphviz-filter.conf
asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.1/etc/asciidoc/
filters/music/music-filter.conf
asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.1/etc/asciidoc/
filters/source/source-highlight-filter.conf
asciidoc: reading: /Users/gerd/Documents/tmp/week4_dq2.txt
asciidoc: writing: /Users/gerd/Documents/tmp/week4_dq2.xml
asciidoc: reading: /usr/local/Cellar/asciidoc/8.6.1/etc/asciidoc/lang-
en.conf
a2x: executing: xmllint --nonet --noout --valid /Users/gerd/Documents/
tmp/week4_dq2.xml
I/O error : Attempt to load network entity 
http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
/Users/gerd/Documents/tmp/week4_dq2.xml:2: warning: failed to load
external entity "http://www.oasis-open.org/docbook/xml/4.5/
docbookx.dtd"
D DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/
docbookx.dtd"

^
/Users/gerd/Documents/tmp/week4_dq2.xml:6: validity error : Validation
failed: no DTD found !
<article lang="en">
                   ^
a2x: ERROR: xmllint --nonet --noout --valid /Users/gerd/Documents/tmp/
week4_dq2.xml returned non-zero exit status 4

xmllint is unable to find a locally installed DocBook 4.5 DTD on your system so it's unable to validate the DocBook file generated by asciidoc (xmllint error code 4). You need to install the DocBook DTD (I'm not familiar with the Mac so can't point you in the right direction). You can sidestep the problem by running a2x with the --no-xmllint option.

Cheers, Stuart



I downloaded the asciidoc from Homebrew, the version is:

a2x --version
a2x 8.6.1

I've tried Google but haven't found a fix.
Thanks for the help.

Cheers
Gerd


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