This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] xmlto
- From: Steve Whitlatch <swhitlat at getnet dot net>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Tue, 6 Jan 2004 16:55:37 -0700
- Subject: [docbook-apps] xmlto
- Organization: Steve Whitlatch, Inc.
- Reply-to: swhitlat at getnet dot net
Hello everyone,
I'm experimenting with xmlto. It mostly works for me,
but I'd like to get it working fully. The problems I'm
having with xmlto seem to all be related to producing
formats that rely on TeX/LaTeX/pdfTeX. However, my teTeX
installation performs otherwise OK, to the best of
my knowledge.
first problem:
********************
%xmlto pdf xmlto.xml
Making portrait pages on letter paper (8.5inx11in)
This is pdfTeX, Version 3.14159-1.10b (Web2C 7.4.5)
(./tmp.fo
Error: pdfxmltex (file pdftex.cfg): cannot open config file
==> Fatal error occurred, the output PDF file is not finished!
********************
pdftex.cfg is at /usr/share/texmf/pdftex/config/pdftex.cfg,
and I have no reason to believe it should be elsewhere. texhash
does not fix the problem. Also, I _think_ that passivetex, xmltex,
and pdftex are installed properly and working. I'm not sure about
that, but the instructions from the passivetex installation page
for verifying that passivetex is installed properly work fine.
That is,
pdflatex "&pdfxmltex" teiu5.fo
works fine. So, there is a reason to believe that pdflatex can
find pdftex.cfg. pdfxmltex is a different story. pdfxmltex is a
link:
/usr/local/bin/pdfxmltex -> /usr/share/texmf/bin/pdftex
second and third problems (same with "xmlto ps xmlto.xml" and
probably related to the problem with "xmlto dvi xmlto.xml")
*************************
%xmlto dvi xmlto.xml
Making portrait pages on letter paper (8.5inx11in)
This is TeX, Version 3.14159 (Web2C 7.4.5)
(./tmp.fo
xmltex version: 2002/06/25 v1.9 (Exp):
(/usr/share/texmf/tex/xmltex/xmltex.cfg)
! I can't find file `tmp.cfg'.
\@filef@und ->\jobname .cfg
<argument> ...oup \XML@reset \@@input \@filef@und
\endgroup
\IfFileExists #1#2#3->\def \@filef@und {#1 }#2
l.1
<?xml version="1.0"?>
Please type another input file name:
! Emergency stop.
\@filef@und ->\jobname .cfg
<argument> ...oup \XML@reset \@@input \@filef@und
\endgroup
\IfFileExists #1#2#3->\def \@filef@und {#1 }#2
l.1
<?xml version="1.0"?>
No pages of output.
Transcript written on tmp.log.
*****************
I found that if I "touch tmp.cfg" in the directory where I'm
running xmlto, then I get this:
*******************************
%xmlto dvi xmlto.xml
Making portrait pages on letter paper (8.5inx11in)
This is TeX, Version 3.14159 (Web2C 7.4.5)
(./tmp.fo
xmltex version: 2002/06/25 v1.9 (Exp):
(/usr/share/texmf/tex/xmltex/xmltex.cfg)
(/home/steve/temp/xmlto/xmlto-0.0.17/doc/tmp.cfg)
(/usr/share/texmf/tex/xmltex/passivetex/fotex.xmt
! Undefined control sequence.
l.743 {\documentclass
{article}
?
! Emergency stop.
l.743 {\documentclass
{article}
No pages of output.
Transcript written on tmp.log.
*********************************
I think I may have seen a similar error years ago when trying
to process a LaTeX document with just TeX. And for some reason
I am thinking that teTeX's tex binary can determine when the
document being processed is LaTeX, and that is why latex is a
link to tex, but I may be wrong.
Here are some successes. I detect no problems with:
xmlto fo xmlto.xml
xmlto man xmlto.xml
xmlto html xmlto.xml
xmlto xhtml xmlto.xml
xmlto html-nochunks xmlto.xml
xhtml-nochunks xmlto.xml
xmlto javahelp xmlto.xml
Just as a note of interest, upgrading libxslt solved the following:
***********************************
xmlto htmlhelp xmlto.xml
Writing re01.html for refentry
Writing index.html for article
Writing htmlhelp.hhp
Writing toc.hhc
/usr/local/bin/xmlto: line 379: 12241 Segmentation fault
xsltproc $XSLTOPTS -o "$XSLT_PROCESSED" "$STYLESHEET" "$INPUT_FILE"
**********************************
The seg fault occurs with:
%xsltproc --version
Using libxml 20604, libxslt 10033 and libexslt 722
xsltproc was compiled against libxml 20511, libxslt 10033 and libexslt
722
libxslt 10033 was compiled against libxml 20511
libexslt 722 was compiled against libxml 20511
So, I upgraded libxslt and libexslt. "xmlto htmlhelp xmlto.xml"
seemed to not have any more problems:
%xsltproc --version
Using libxml 20604, libxslt 10101 and libexslt 801
xsltproc was compiled against libxml 20604, libxslt 10101 and libexslt
801
libxslt 10101 was compiled against libxml 20604
libexslt 801 was compiled against libxml 20604
Here are some possibly relevant system details:
* teTeX-2.0.2,
* pdfTeX Version 3.14159-1.10b (Web2C 7.4.5)
* xmltex.tex,v 1.9 2002/06/25
Links from:
/usr/local/bin/xmltex -> /usr/share/texmf/bin/latex (which is a link
to tex)
and
/usr/local/bin/pdfxmltex -> /usr/share/texmf/bin/pdftex
Thanks for any help. And thanks to all who made this chain of
converters possible.
Stee Whitlatch
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.