XSL: A Brief Discussion

Extensible Stylesheet Language (XSL) is a templating system for XML documents, and with it you can process an XML document for output. With the same XML source, you might apply different XSL documents to format for the Web, PDAs, interactive television, and mobile phones.

Unfortunately, the details of XSL are beyond the scope of this book, but we can briefly examine PHP’s support for it.

PHP and XSL

PHP’s support for XSL is also currently in flux. The underlying library that PHP 5 now uses is libxslt (http://xmlsoft.org/XSLT/). This is a radical departure from previous versions of PHP, which worked with the Sablotron XSLT processor.

Because work is not yet complete, everything covered in this section is subject to change. ...

Get Sams Teach Yourself PHP in 24 Hours, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.