I am working on XSLT v1.0 and I have to replace these 5 key words with their ASCII values. Using replace function, I am able to replace other characters like Ñ, Ç but I am not able to replace
- & (ampersand) with
&
- < (less than) with
<
- > (greater than) with
>
- “ (double quotation marks) with
"
- ' (apostrophe) with
'
Working statement
<xsl:value-of select="translate(translate(translate(translate(InstructionGrouping/Payer/LegalEntityName,'Ñ','N'),'ñ','n'),'Ç','C'),'ç','c')"/>
Not working
<xsl:value-of select="translate(translate(translate(translate(translate(InstructionGrouping/Payer/LegalEntityName,'Ñ','N'),'ñ','n'),'Ç','C'),'ç','c'),'&','&')"/>
Input XML would be something like this -->
<LegalEntityName>Legal & entity Beach & Resort LLC</LegalEntityName>
Expected Output -->
Legal & entity Beach & Resort LLC