ccontavalli/mod-xslt — Issue #2: cannot get exslt working
Author: clubshop
Created: 2011-10-10 16:25:19+00:00
State: open

I'm trying to experiment with yaslt extensions, but have been unable to get the extensions to work. I have tried a plethora of configuration options, but the test xsl page indicates that they are not enable.

Here is my configure invocation:
./configure --with-sapi=apache2 --enable-extensions --enable-exslt --with-apxs=/usr/sbin/apxs

Here is the XSL file I am using:

Host:
modxslt-interface:
modxslt-sapi:
modxslt-name:
modxslt-handler:
modxslt-namespace:
modxslt-conf-libpcre:

modxslt-conf-exslt:
modxslt-conf-extensions:

modxslt-version:

The apache error log shows this:
[Mon Oct 10 09:15:00 2011] [error] [client 208.78.129.189] mod-xslt: runtime error: file /home/glocalincome.com/html/test/bill/ytest.xsl line 11 element value-of
[Mon Oct 10 09:15:00 2011] [error] [client 208.78.129.189] mod-xslt: xsltApplySequenceConstructor: failed to find extension value-of
[Mon Oct 10 09:15:00 2011] [error] [client 208.78.129.189] mod-xslt: libxslt: couldn't apply stylesheet.
[Mon Oct 10 09:15:00 2011] [error] [client 208.78.129.189] mod-xslt: fatal - couldn't apply stylesheet to: /home/glocalincome.com/html/test/bill/ytest.xml

If I comment out the 1st yaslt:value-of, the module is happy:
Host:
modxslt-interface: 2
modxslt-sapi: apache2
modxslt-name: mod-xslt
modxslt-handler: mod-xslt
modxslt-namespace: http://www.mod-xslt2.com/ns/1.0
modxslt-conf-libpcre: true

modxslt-conf-exslt: true
modxslt-conf-extensions: true

modxslt-version: 1.4.0

I have also tried using the "http://www.mod-xslt2.com/ns/1.0" namespace in the XSL stylesheet xmlns attribute, but the results were the same.