Chapter 4

Templates Rule!

In This Chapter

bullet Introducing template rules

bullet Finding out how a template is processed

bullet Using xsl:apply-templates, xsl:copy, xsl:copy-of, and xsl:value-of

bullet Introducing built-in template rules

bullet Matching the best template

bullet Working with attribute value templates

bullet Understanding named templates

T emplate rules are the foundation of XSLT. Not only do they specify what information should be pulled from the source document, but template rules also define what the resulting document is going to look like. Think of them as the bricks of a chimney, the shingles of a roof, the pages of this book, nuggets in a 12-piece McNugget Value Meal. Well, you get the idea, right? Template rules are the basic building blocks of XSLT and nothing much happens in “transformation-land” without ...

Get XSLT for Dummies 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.