XSLT TutorialLesson 61Free preview
XSLT Apply
This lesson is part of XML · All levels
Summary
<xsl:apply-templates> calls other templates whose match pattern matches the selected node. Unlike for-each which processes on-site, apply-templates move the processing stream to another <xsl:template match="...">. XSLT also provides built-in templates that copy text and process children recursively.
Key points
- Apply-templates call the template according to match pattern
- Select on the apply-templates limiting the node being processed
- Without select, the entire sub node at that time was processed
- Call-template calls based on attribute name, not match
- The built-in template copies the text and keeps going down to its children
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.