I have an XML file with the following content:
<option>
<test attr="a">text1</test>
<test attr="b">text2</test>
<test attr="c">text3</test>
</option>
How can I now extract text2 using xslt? Everything I try gives me text1.
For example:
<xsl:if test="option/test/@attr='a'">
<xsl:value-of select="option/test"/>
</xsl:if>