Convert Comma Separated into OR delimiter
Summary
Convert Comma Separated into OR delimiterContent
Hi,
I am currently doing a logic on changing the data format from:
"listOfAccountNumbers" : "0000001, 000002, 000003"
to
0000001 OR 000002 OR 000003
but the replace() function is not supported on the version 2.0 xslt. I have tried the translate() function but it only updates the first single character.
Is there any way on how could I convert it?
Thank you!
Version
Version 2.0 XSLTCode Snippet
<xsl:template match="/" xml:id="id_11"> <xsl:variable name="currentAccountnumber" select="translate(/nssrcmpr:execute/nsmpr0:request-wrapper/nsmpr0:APIRequest/nsmpr0:listOfAccountNumbers, "", "OR")"/> <nstrgmpr:execute xml:id="id_12"> <nstrgdfl:request-wrapper> <nstrgdfl:APIRequest>
Tagged:
0