Chapter 4
Templates Rule!
In This Chapter
Introducing template rules
Finding out how a template is processed
Using xsl:apply-templates, xsl:copy, xsl:copy-of, and xsl:value-of
Introducing built-in template rules
Matching the best template
Working with attribute value templates
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 ...
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