The person who wrote the Apache mod is long gone from the project, so he's not around for help. I objected to including an Apache mod sample because no one on the project had any experience working with Apache mods, so supporting the code would be a nightmare. Of course, that's turned out to be true.
I'm not an expert on Apache modules either, but perhaps if you debug the executable and determine where the code is segfaulting, someone might be able to help. Just telling us the code is crashing is not really enough. You should also check out other projects. I found a bunch of stuff on google, by searching "apache mod xalan" http://www.webthing.com/software/modxml/ http://packages.debian.org/testing/web/libapache-mod-xslt.html Dave Joakim Bomelin <joakim@bomelin. To: [EMAIL PROTECTED] com> cc: (bcc: David N Bertoni/Cambridge/IBM) Subject: Apache module using Xalan 07/02/2002 08:41 AM Please respond to xalan-dev Since nobody seems to be able to give me an answer I put togheter some code which I compiled with gcc -o xala_test xalan_test.c -lxalan-c1_3, and it worked. I used both XalanTransformToHandler and XalanTransformToFile, and it all worked. So I took the same code and put it together as an apachemodule (I based it on the code coming out of apxs -g -n foo), and it started causing Apache to segfault. I tried to hard code the filenames, using files in a directory which was chmodded 777, in case some trouble with privileges was the problem, but that didn't help. I clearly was misstaking when I thought that Xalan being an Apache product would work good together with the httpd. I still haven't got the ApacheModuleXSLT in samples/ to work, either. It is of great importance to me that I produce a working set up with Apache handling the XML transformation, and not as a CGI. Could anyone at least try to help me, please? /Joakim Quoting Joakim Bomelin <[EMAIL PROTECTED]>: > > So I got the module runnig after some hacking. But when I request foo.html > the > Apache child segfaults. When I comment out error = > XalanTransformToHandler(...) > and call xalan_output_handler and xalan_flush_handler manually from > xsl_handler > everything is allright. I have checked so that the request_rec i correctly > bypassed to the handlers and everything, but no matter what I do call to > XalanTransformToHandler keeps generating a segfault. I took the exact same > code > and transformed it into a good old executable, and it worked... so I have no > > idea what to do. gdb:ing httpd didn't help me, either... > > Anyone? > > /Joakim > > Quoting Joakim Bomelin <[EMAIL PROTECTED]>: > > > > Hi. > > I tried to compile ApacheModuleXSLT using the Makefile in Xalan, but that > > > didn't work out. So I used apxs -i -a -c mod_xslt.c -lxalan-c1_3, which > > worked > > out OK. > > > > According to http://xml.apache.org/xalan-c/samples.html#apachemodulexslt > I > > put > > AddModule mod_xslt.c and LoadModule xslt_module mod_xslt.so in my > httpd.conf, > > > > and I get "Cannot add module via name 'mod_xslt.c': not in list of loaded > > > modules". If I use only LoadModule xslt_module mod_xslt.so Apache starts > up > > OK, > > so I carry on with adding > > <Location /xslt/> > > AddHandler xslt_module .html > > </Location> > > to my VirtualHost in httpd.conf. When I point my browser to > > http://mecka1.pennans.net/xslt/foo.html I get a 404 (see log-entry below), > > > allthough both foo.xml and foo.xsl resides in xslt/ in the document root. > > > > [Sun Jun 30 14:45:48 2002] [notice] Apache/1.3.19 (Unix) > mod_xslt/Xalan/1.0 > > > > PHP/4.0.4pl1 mod_perl/1.25 configured -- resuming normal operations > > [Sun Jun 30 14:45:48 2002] [notice] suEXEC mechanism enabled > > (wrapper: /usr/local/apache/bin/suexec) > > [Sun Jun 30 14:47:15 2002] [error] [client 10.0.0.15] File does not > > exist: /home/www/mecka1.pennans.net/xslt/foo.html > > > > What can I do to fix this? > > I use Apache 1.3.19, Slackware 7.1 and Linux 2.2.16 (old stuff, I know > :)) > > > > /Joakim > > > > >
