In my WSO2 ESB project , I am using xslt files for transformation. I need to manage the type of the values from the endpoint. My payload is JSON and legacy systems's payload is also JSON. I am trying to change the integer value to string value.
Tried to use script in sequence taking payload and using js but I need to manage it in xslt.
For example ;
<xsl:if test="//jsonObject/searchTerm">
<searchTerm><xsl:value-of select="//jsonObject/searchTerm"/></searchTerm>
</xsl:if>
searchTerm value is an integer value from the endpoint but i need to transfer it as string to other system. Could you please advise about this issue?
Could you try this,
<xsl:if test="//jsonObject/searchTerm">
<searchTerm>@@@<xsl:value-of select="//jsonObject/searchTerm"/></searchTerm>
</xsl:if>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With