Forum Moderators: phranque

Message Too Old, No Replies

How best to do server-side xsl transforms

Apache + PHP?

         

davidpbrown

1:10 pm on Nov 25, 2003 (gmt 0)

10+ Year Member



I've just read w3schools excellent intro to XSL on the server [w3schools.com]

It suggests using .asp on apparently IIS neither of which I'm familar with.

Is there a standard simple way this is done using PHP on Apache?

I've seen mention of a PHP Sablotron Wrapper Class but not sure what to make of it.

Thanks
davidpbrown

lorax

3:57 pm on Nov 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You may find this of use to read [onlamp.com].

Sablotron is an expat-based XSLT processor written in C++. The Sablotron Wrapper Class was created for use with earlier versions of PHP and the Sablotron Processor. I don't think you need to worry about it as I believe the classes are built into the expat library and are part of the latest PHP builds.

Additional reading:

Using PHP's Sablotron extension to perform XSL Transformations [tonymarston.net]

XSLT functions @ php.net [us4.php.net]