<xsl:for-each select="*[local-name()='TaxInfo']">
<xsl:if test="@Category='YR'">
<xsl:value-of select="@Category"/>
</xsl:if>
</xsl:for-each>
#Simple
<xsl:for-each select="*[local-name()='TaxInfo'][@Category='YR']">
<xsl:value-of select="@Category"/>
</xsl:for-each>