Does the following code have any defined behavior in XSLT or XPath? I have tried this before and it didn't do what I thought it should do. Instead, I had to use the local-name function and compare it with a string representing the element of interest.
<xsl:if test=". = SomeElement">
</xsl:if>
<xsl:if test=". = SomeElement">
</xsl:if>