I need to vary my same element by using the attribute value using the XSL:
My Input xml is:
<span class="Option">
<span class="AnswerText">Female</span>
</span>
XSL I used:
<xsl:template match="span">
<p><xsl:apply-templates/></p>
</xsl:template>
Output I'm getting as:
<p><p>Female</p></p>
But I want the output be like:
<p><ph>Female</ph></p>
I need to vary the both span element by using the attribute value. Please suggest me the code. Thanks in advance