To match the specific XML elements child like of parent element, the syntax…

2022

To match the specific XML elements child like of parent element, the syntax will be –

  1. A.

    <xsl:template match="PLANET_NAME">

  2. B.

    <xsl:template match="PLANET/NAME">

  3. C.

    <xsl:template match="NAME">

  4. D.

    <xsl:template match="//">

Attempted by 99 students.

Show answer & explanation

Correct answer: B

In XSLT, XPath expressions are used in the match attribute to select nodes.

The / operator specifies a direct parent–child relationship, so PLANET/NAME matches NAME elements that are children of PLANET, ensuring precise hierarchical selection.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs