Using Recursion to Do Most Anything

Writing an XSLT stylesheet is different from programming in other languages. If you didn’t believe that before, you probably do now. We’ll finish this chapter with a couple of examples that demonstrate how to use recursion to solve the kinds of problems that you’re probably used to solving with procedural programming languages. We’ll also look at some new features of XSLT 2.0 and XPath 2.0 that allow you to avoid recursion in some situations.

Get XSLT, 2nd 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.