dagblog.
← Archive

PHP 4.3.0 and XSLT


I don’t know quite why, but this article giving a quick introduction to using PHP and XSLT together made me happy. The thing I preach day and night, keeping application logic separate from presentation, was hard to pull off in earlier PHP versions. Things are changing fast, and, believe it or not, it’s fairly straightforward in PHP now. The XSLT processor it uses is Sablotron, which has its roots here in the Czech Republic. If you write code, give the article a read. It’s worked very well for me. I use PHP as the application logic to pull data from the database and produce XML. I feed that XML into the processor along with an XSL stylesheet, and the resulting XHTML 1.0 goes to the browser.

Medium version

Related articles

Related CZ Podcast episodes