Am having a code like this to translate from &
to &
which is working fine, but it also removing other characters in the field which is a
,m
,p
because we are translating.
I just want this to work to translate &
to &
not to delete a
,m
,p
characters.
<xsl:when
test="contains(//column[@name="Description"]/text(), "&amp;")">
<xsl:value-of
select="translate(//column[@name="Description"]/text(),'&amp;','& ')"
disable-output-escaping="no"/>
</xsl:when>
Input: Input: &amp;wUS &amp;and amptestamp
Current Output: &wUS &nd test
Expected output: &wUS &and amptestamp