Chapter 5. Branching and Control Elements

So far, we’ve done some straightforward transformations and we’ve been able to do some reasonably sophisticated things. To do truly useful work, though, we’ll need to use logic in our stylesheets. In this chapter, we’ll discuss the XSLT elements that allow you to do just that. Although you’ll see several XML elements that look like constructs from other programming languages, they’re not exactly the same. As we go along, we’ll discuss what makes XSLT different and how to do common tasks with your stylesheets.

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.