Difficulty: Easy
Correct Answer: {for-each select}
Explanation:
Introduction / Context:
XSLT stylesheets can contain literal result elements (e.g., HTML tags) and XSLT instruction elements (e.g., xsl:for-each). The processor copies literal content until it reaches an instruction that changes processing behavior. This question asks you to recognize the iteration instruction form.
Given Data / Assumptions:
Concept / Approach:
The xsl:for-each instruction iterates over a node-set defined by its select XPath expression, changing the processing context for each node matched.
Step-by-Step Solution:
Verification / Alternative check:
Any basic XSLT tutorial shows xsl:for-each select="path/to/nodes".
Why Other Options Are Wrong:
Common Pitfalls:
Confusing XPath expressions (used inside select) with SQL query syntax.
Final Answer:
{for-each select}
Discussion & Comments