I have the following XML (simplified):
<node1>
<node2>
<node3>
</node3>
</node2>
</node1>
And I need to determine (using XSL) if node3 has a parent named node1 (not only the inmediate parent, so in the example node3 is a child of node1)
The following code is not working:
<xsl:if test="parent::node1">
</xsl:if>
Thank you