XSLT Conclusion

XSLT is a very powerful technology that is only recently finding a niche for itself. As with many new technologies, its biggest limitation is acceptance: many browsers just do not support XSLT processing, and probably will not support it within the foreseeable future.

Congratulate yourself once again for having chosen to use PHP, as the PHP support for server-side parsing is complete and very powerful. The end result of switching from client-side XSLT parsing to server-side XSLT parsing is the same as switching to PHP for form validation instead of using JavaScript: you are guaranteed 100% compatibility with all clients, as well as giving yourself the ability to add in extra functionality that would otherwise have been problematic.

Even the most basic XML implementation can provide instant return on investment, simply by making your content available in a pure format. Furthermore, you can add more powerful XSLT processing at a later date.

Perhaps the most popular use for server-side XSLT parsing is serving a particular content type (e.g.: WML for WAP phones) based upon the user agent received.


Want to learn PHP 7?

Hacking with PHP has been fully updated for PHP 7, and is now available as a downloadable PDF. Get over 1200 pages of hands-on PHP learning today!

If this was helpful, please take a moment to tell others about Hacking with PHP by tweeting about it!

Next chapter: Summary >>

Previous chapter: What else can XSL do?

Jump to:


Home: Table of Contents

Copyright ©2015 Paul Hudson. Follow me: @twostraws.