Developer forum

Forum » Templates » Running translate function on CDATA

Running translate function on CDATA

Per Ljung
Reply
Hi!

I wonder if it's possible to run the xslt function translate with a CDATA section as input?

The reason for this is that I need to print the total value of the shopping cart, but the output adds "SEK" and uses a dot (.) as separator and I want to remove the value SEK and replace the dot with a comma. I have tried to remove this, but I guess it's there because of our NAV connection.

The code for displaying the total value:

<xsl:text disable-output-escaping="yes"><![CDATA[<!--@Ecom:Order.OrderLines.Total.PriceWithoutVAT-->]]></xsl:text>

Best regards,
Per


Replies

 

You must be logged in to post in the forum