Multiple choice technology programming languages

What is the correct symtax of for-each in XSLT ?

  1. <for-each>CODE.....</for-each>

  2. <xsl:for-each>CODE.....

  3. <xsl:for-each>CODE.....</xsl:for-each>

  4. <xsl:foreach>CODE.....</xsl:foreach>

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

XSLT requires proper XML syntax including closing tags. The element must have both opening and closing tags: ... . Option B shows only the opening tag without closing, making it syntactically incomplete.