Hi!
My system is:
redhat 7.2 + updates
apache 1.3.23
perl 5.6.1
mod_perl 1.26
AxKit 1.51
libxml2 2.4.18-1
libxslt 1.0.7-2
expat 1.95.2
XML::LibXML 1.40
XML::LibXSLT 1.31
XML::Parser 2.30
I use the Dromedaries example of the AxKit Quick Start Guide. I called it
test.xml/xsl/xps
The problem is that test.xml and all other xml/xsl-files have no output to the browser
and there is no real error message in httpd error log though I use debuglevel 10. The
last httpd error logs are always like:
[Thu Mar 28 08:16:29 2002] [warn] [client 172.16.100.10] [AxKit] Cache: key = cf
da25be8599bde9956453fcdb8c65c5
[Thu Mar 28 08:16:29 2002] [warn] [client 172.16.100.10] [AxKit] getting styles
and external entities from the XML
[Thu Mar 28 08:16:29 2002] [warn] [client 172.16.100.10] [AxKit] styles not cach
ed - calling $provider->get_styles()
[Thu Mar 28 08:16:29 2002] [warn] [client 172.16.100.10] [AxKit] using XS get_st
yles (libxml2)
[Thu Mar 28 08:16:29 2002] [warn] [client 172.16.100.10] [AxKit] calling xs_get_
styles_fh()
AxKit stops here and doesnt output anything. Though IE returns "Server not found" for
XML-Pages Apache still works after this happened.
The error is in Provider.pm line 209: $bits = xs_get_styles_fh($self->apache_request,
$fh);
I can�t go on tracing the error because I don�t find sub xs_get_styles_fh (seems to be
C/C++).
This perl script works (same xml/xsl files):
use XML::LibXSLT; use XML::LibXML;
my $parser = XML::LibXML->new();
my $xslt = XML::LibXSLT->new();
my $source = $parser->parse_file('../html/xml/test.xml');
my $style_doc = $parser->parse_file('../html/xml/test.xsl');
my $stylesheet = $xslt->parse_stylesheet($style_doc); #
my $results = $stylesheet->transform($source);
print $stylesheet->output_string($results);
I dont think the problem is caused by carp (see faq) because I didnt find any other
module oder script that uses carp. How can I be absolutly sure about this? Do you have
any other ideas how to fix this error?
cya
Tobi - installing AxKit for 7 days yet