Chapter 9. Named Templates, Parameters, and Variables
This chapter looks at some powerful features of XSLT, known as templates, stylesheet parameters, and variables. These topics are all related— you use parameters with named templates, and variables and parameters are practically the same, except for the way they’re created.
When you give a template a name, you can specifically call it, using the <xsl:call-template> element. A template is applied when it is called, so rather than rely on the default processing of the stylesheet by the XSLT processor, you can determine when a template is applied, as well as which one is applied. For example, ...
Get Inside XSLT 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.