In XSLT, the processor applies transformation rules by matching nodes using XPath expressions inside < xsl:template match= " " > statements.
“Templates define the rule, and XPath expressions determine which nodes they apply to.”
This is the foundational mechanism by which XSLT processes XML data.
Why the others are incorrect:
B. The < xsl:stylesheet > element defines scope, not node matching.
C. < xsl:call-template > invokes a named template but does not itself match nodes.
D. Namespace prefixes are used within XPath, but node matching is based on XPath.
[Reference:W3C XSLT 1.0 Specification – xsl:template and XPath MatchingWorkday Integration Training – “How XSLT Applies Rules to XML Output”, , ]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit