I have citation text within span. The markup string has > and < and &. When I transform that citation text I am using disable-output-escaping=’yes’. It is working good for < and >. But I need to exclude this for &. Because I will use the output as an input for another xslt transformation.
This is given text:
<xsl:variable name="text" select="'<span>some text & <span>'"/>
I tried with this code:
<xsl:value-of select="$text" disable-output-escaping="yes"/>
What I am getting now:
<span>some text & <span>
What I am expecting:
<span>some text & <span>