DocBook... won't work??
Francis J. Lacoste
flacoste at logreport.org
Sat Apr 19 18:51:27 CEST 2003
On ven, 2003-04-18 at 23:10, Steve Quartly wrote:
>
> Hi Francis,
>
> Many thanks for your help. I have used your suggestion and moved my
> DocBook to /usr/lib/sgml/docbook-xml-dtd-4.2/ and I get html output.....
> but (there's always a but!! :-)
>
> 1) Only one page of html is generated even though I haven't specified
> the html_page option. I run it with something like:
>
> lr_run lr_log2report -o html combined < /var/log/httpd/access_log >
> ~/test.html
>
> Test.html contains all the pages in one, except where the page breaks
> should be I get lines like this before the page:
> Before the first page:
> report/0040750000000000000000000000000007650135106011071 5ustar
> rootrootreport/index.html01006400000000000000000000031331076501351060130
> 65 0ustar rootroot
>
This is because HTML reports are output in a tar file. The garbage you
are seeing is part of the tar format. When using HTML output, you should
use lr_log2report -o html combined < log_file > report.tar and use tar
to unpack the report.
>
> 2) If I generate with:
>
> lr_run lr_log2report -o html -i combined < /var/log/httpd/access_log
> | tar xfC - /tmp
>
> All the images are created, however index.html is 0 bytes long?
>
> Any help would be gratefully appreciated.
>
This used to happen with some version of xsltproc and recent version
of the DocBook XSL stylesheets. Upgrading to a recent version of
xsltproc would solve that problem. You might also want to run
the command with more log messages by setting LR_DEBUG in your
$HOME/.lire/etc/defaults file:
echo LR_DEBUG=1 >> $HOME/.lire/etc/defaults
Francis J. Lacoste
--
Francis J. Lacoste . . http://www.logreport.org
/^LogReport$/ . . flacoste at logreport.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.logreport.org/pipermail/questions/attachments/20030419/0e791b20/attachment.bin
More information about the Questions
mailing list