I'm trying out the libapache2-modxslt module which is written in c an provides the ability to parse XML. :-)
I just installed it on an ubuntu machine and am going to follow their instructions when trying it out for the first time.
sudo apt-get install libapache2-modxslt sudo a2enmod modxslt
I had difficulty with their documentation, but I was able to figure out the basics. Here's what I used in my config:
Order deny,allow Deny from all Allow from 192.168 SetOutputFilter mod-xslt AddType text/xml .xml XSLTSetStylesheet text/xml /var/www/public/test.xsl
In my test, Apache cached the XSL file even though a reboot and modification time change. Hmmm.
Also, documents produced by modxslt generate this comment at the end of the document which is pretty cheesy:
That copyright message has no business being in a resulting document created by someone else. I'm surprised that Debian let something like that slip through. Blah.
I was just sifting through the code and found this:
That is even lamer that they are aware that people don't want it there but make it difficult to remove. Shame shame. At least its GPL so someone (me?) can fork it and remove that lameness.
In my humble opinion, it would make more sense to have Apache test for browser user agents, and pre-render the content when serving requests to older browsers.