Hi Stuart,

thanks for the hint. Unfortunately, the --no-xmllint option doesnt
help. I think, that my dblatex installation is correct with all
dependencies. However, the system is doing some 'interesting' stuff,
but not creating some output.
Seems that on MAC, this is not working. Also I dont know where to put
the docbookx.dtd. I have created a mycatalog entry, but this is also
not helping.

cat mycatalog
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog
V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/
catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
  <public publicId="-//OASIS//DTD DocBook XML V4.5//EN" uri="
file://usr/local/share/xml/docbook/dtd/4.5/docbookx.dtd"/>
</catalog>

The command is still not finding the .dtd file.
The complete output is hereunder.

a2x -f pdf --no-xmllint --verbose week4_dq2.txt
a2x: args: ['-f', 'pdf', '--no-xmllint', '--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: dblatex -t pdf -p /usr/local/Cellar/asciidoc/8.6.1/etc/
asciidoc/dblatex/asciidoc-dblatex.xsl -s /usr/local/Cellar/asciidoc/
8.6.1/etc/asciidoc/dblatex/asciidoc-dblatex.sty  -V  /Users/gerd/
Documents/tmp/week4_dq2.xml
/usr/local/lib/python2.6/site-packages/dbtexmf/dblatex/grubber/util.py:
8: DeprecationWarning: the md5 module is deprecated; use hashlib
instead
  import md5
Build the book set list...
xsltproc -o /var/folders/yn/ynyApaeSGt8vYRxY1yzWcE+++TI/-Tmp-/
tmpRZISri/doclist.txt --xinclude --xincludestyle doclist.xsl /Users/
gerd/Documents/tmp/week4_dq2.xml
Build the listings...
xsltproc -o /var/folders/yn/ynyApaeSGt8vYRxY1yzWcE+++TI/-Tmp-/
tmpRZISri/listings.xml --xinclude --xincludestyle --param current.dir
'/Users/gerd/Documents/tmp' /usr/local/share/dblatex/xsl/common/
mklistings.xsl /Users/gerd/Documents/tmp/week4_dq2.xml
xsltproc -o week4_dq2.rtex --xinclude --xincludestyle --param
current.dir '/Users/gerd/Documents/tmp' --param listings.xml '/var/
folders/yn/ynyApaeSGt8vYRxY1yzWcE+++TI/-Tmp-/tmpRZISri/listings.xml' /
private/var/folders/yn/ynyApaeSGt8vYRxY1yzWcE+++TI/-Tmp-/tmpRZISri/
custom.xsl /Users/gerd/Documents/tmp/week4_dq2.xml
XSLT stylesheets DocBook - LaTeX 2e (0.3)
===================================================
Processing Revision History
Image 'dblatex' not found
Build week4_dq2.pdf
built-in module pdftex registered
no support found for ifxetex
no support found for fontspec
no support found for xltxtra
no support found for fontenc
no support found for inputenc
no support found for fancybox
built-in module makeidx registered
no support found for asciidoc-dblatex
building additional files...
checking if compiling is necessary...
the output file doesn't exist
pdflatex -interaction=batchmode week4_dq2.tex
This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
 restricted \write18 enabled.
entering extended mode
pdflatex failed
week4_dq2.tex:171: Lonely \item--perhaps a missing list environment.
week4_dq2.tex:171: leading text: \bibitem{id36074321}
week4_dq2.tex:171: Undefined control sequence \...@listctr.
week4_dq2.tex:171: leading text: \bibitem{id36074321}
week4_dq2.tex:171: You can't use `\relax' after \the.
week4_dq2.tex:171: leading text: \bibitem{id36074321}
week4_dq2.tex:176: Lonely \item--perhaps a missing list environment.
week4_dq2.tex:176: leading text: \bibitem{id36074336}
week4_dq2.tex:176: Undefined control sequence \...@listctr.
week4_dq2.tex:176: leading text: \bibitem{id36074336}
week4_dq2.tex:176: You can't use `\relax' after \the.
week4_dq2.tex:176: leading text: \bibitem{id36074336}
week4_dq2.tex:183: Lonely \item--perhaps a missing list environment.
week4_dq2.tex:183: leading text: \bibitem{id36074354}
week4_dq2.tex:183: Undefined control sequence \...@listctr.
week4_dq2.tex:183: leading text: \bibitem{id36074354}
week4_dq2.tex:183: You can't use `\relax' after \the.
week4_dq2.tex:183: leading text: \bibitem{id36074354}
Unexpected error occured
a2x: deleting /Users/gerd/Documents/tmp/week4_dq2.xml





On Oct 23, 1:41 am, Stuart Rackham <[email protected]> wrote:
> 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 
> > entityhttp://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