WEEK 1 Day 6 Conditional and Iterative Processing

Yesterday you learned how to insert text, elements, and attributes into the resulting output. You also learned how to copy elements from the source document into the resulting output. These skills are important when you’re transforming XML because you now can create nearly all sorts of output from an element or attribute.

Also key to the transformation process is the flow of control. Currently, you can influence it—and thus what the output looks like—through the use of templates. Although templates are powerful, they are not always the best tool when you need to differentiate between nodes to be inserted.

The focus of today’s lesson is XSLT functionality that enables you to selectively act on ...

Get Sams Teach Yourself XSLT in 21 Days 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.