XSLT TutorialLesson 55Free preview
XSLT <template>
This lesson is part of XML · All levels
Summary
Templates are the main rule blocks in XSLT that are declared with <xsl:template> and called when the match pattern matches. In the template, the application-templates forward the process to the resulting node of selection, while the call-template calls the named template. Additional controls are available via xsl:if and xsl:choose for conditional logic.
Key points
- Xsl:template defines the block of transform rules
- The match attribute contains XPath matching node patterns
- Apply-templates forward the process to the selected node
- Call-template calls a particular template by name
- Xsl:if and xsl:choose add conditional logic
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.