I'm trying to run mod-xslt 1.3.7 (the 2004101700 tarball) on apache2
on Gentoo Linux release 2004.2 but I can't see to get XSLTAddRule and
XSLTSetStylesheet to work correctly:
* If I use XSLTSetStylesheet the default stylesheet is always invoked
regardless of whether the requested xml file has a <?xml-stylesheet>
PI or not.
* I can't get XSLTAddRule to take effect regardless of whether the xml
file has the stylesheet PI or not. What I want to do is invoke the
stylesheet specified in the URL but this has no effect:
XSLTAddRule "$GET[stylesheet].xsl" "$GET[stylesheet]"
given an URL like foo.xml?stylesheet=mysheet
Is there any way to log how mod-xslt is trying to figure out which
stylesheets to apply?
Also it took me some effort to get mod_xslt installed and running;
these are the problems I ran into:
1. gentoo places apxs2 in /usr/sbin but the APXS1 and APXS2 variables
doesn't include sbin
2. even though Gentoo's default /etc/ld.so.conf includes
/usr/local/lib apache could not find libmodxslt.so.0 (running
configure --prefix=/usr fixes this)
3. I had to change the reference to ap_table_elts in
sapi/apache2/modxslt-helpers.c to apr_table_elts -- without that
change i get this error when I try to start apache:
"Cannot load /usr/lib/apache2/modules/mod_xslt.so into server:
undefined symbol: ap_table_elts"
And while I'm writing this, let me ask if there are plans to implement
caching?