julia.richards@gmail.com Posted February 4, 2011 Share Posted February 4, 2011 I have a cell in a table which contains a number: <fo:table-cell table="orders" ref="quantity" value="qty" >this outputs a number in the form 2.000I want 2.000 to display as 2I want 2.500 to display as 2.5can anyone suggest the code to do this? Link to comment Share on other sites More sharing options...
Martin Honnen Posted February 4, 2011 Share Posted February 4, 2011 Here we do XSLT, not XSL-FO. Assuming you use XSLT to output a number from an XML input document you can use the XSLT function http://www.w3.org/TR/xslt#format-number: format-number(foo, '##0.##') Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.