Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: translate function trims zeros on '1.00' and gives a simple '1' ? translate function trims zeros on '1.00' and gives a simple '1' ?To: NULL Date: 1/2/2009 2:49:00 PM I'm creating a CSV (text) file out of a XML file. I'm using the following expression so that when the XYZ field contains a value of let's say 3,54 it must be converted to 3.54. And also if it contains (-) I want to replace it with the value of 1.00 While the 1st one works, when the field contains (-) I get a simple 1 and not 1.00 in the output file. Why? <xsl:value-of select="translate(translate(XYZ,',','.'),'-','1.00') | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
