79341351

Date: 2025-01-09 04:17:37
Score: 1
Natty:
Report link

You can set the variable this way:

<xsl:variable name="variableName" select="//h:fruit[h:p1='Orange']/h:p2"/>

That finds the matching fruit element and returns the content of its p2 child. You will need add the definition for the h: namespace prefix.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tony Stevens