How to handle & symbol in payment file xsl template
Summary:
Need to replace '&' symbol with 'and' in payee name and address fields.
We have tried
<xsl:variable name="ampsymbol"
select="'&s;'"/>
<Nm>
<xsl:choose>
<xsl:when test="contains(Payee/Name ,$ampsymbol)">
<xsl:value-of select="translate(Payee/Name,$ampsymbol,'AND')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="Payee/Name"/>
</xsl:otherwise>
</xsl:choose>
</Nm>
This is not working. getting the name as like **** & YYYY. I need to get this worked as **** AND YYYY
Please share any inputs in achieving this.
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
0