Hi all,
I am trying to pharse a xsl variable like below
declared xsl variables like
My xslt file will have below value to get the above declared values
and my payload is given below
when i am trying to do is, i want the get the currencycode by phrasing xsl with xml?
if my currency code is USD the i have to display as --> $
based on the currencycode xml value i have to get the result here.
can anyone help in to sort out this problem,
Thanks in advance,
Regards,
Magesh
I am trying to pharse a xsl variable like below
declared xsl variables like
Code:
<xsl:variable name="USD">
<xsl:value-of select="'$'" />
</xsl:variable>
<xsl:variable name="EUR">
<xsl:value-of select="'€'" />
</xsl:variable>
Code:
file name: xsltest.xsl <xsl:variable name="code" select="string(src:currencyCode)" /> <xsl:value-of disable-output-escaping="yes" select="'$' + code"/>
Code:
file name: test.xml <src:Testmessage xmlns:src="testtemplate"> <src:currencyCode>USD</src:currencyCode> </src:Testmessage>
if my currency code is USD the i have to display as --> $
based on the currencycode xml value i have to get the result here.
can anyone help in to sort out this problem,
Thanks in advance,
Regards,
Magesh
Comment