You Shouldn’t Migrate All of Your Stylesheets Just Because There’s a New Version of XSLT
Anytime a new version of a language, standard, or software package comes along, deciding when or if to migrate to the new features depends on your application. If you’ve built a web application in which you use a web browser to process XSLT stylesheets on the client side, you can’t migrate to XSLT 2.0 until all the major browsers support XSLT 2.0. That’s going to be a while. On the other hand, if you use XSLT to transform your data and then send the transformed data to the client, you can use XSLT 2.0 right away. With very few exceptions, anything that worked in XSLT 1.0 works in XSLT 2.0. We cover migration in Appendix G.
XSLT 2.0 and XPath 2.0 have many new features that make your stylesheets easier to write, easier to maintain, and much more powerful. It’s definitely worth your time to investigate the new features to see how many of them you can use.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access