You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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="'&amps;'"/>

<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):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!