XSLT 1.0 amount fields have to have at least 2 decimals
问题 I have two xmls.There is a amount field which can contains values like 54.2,54.23,54.234,54.234567. Would someone please tell me how can I make sure that atleast two decimal places will appear in the output xml.Currently 54.2 gets converted to 54,2 , but I want it to be 54,20 回答1: You can use the format-number() function to convert a number into a string in a given format. At least two decimal places will be appeared if you use this "#.00##########" format string. If you have an xml file