XSL: Adding an extra digit to the coordinate data

Blazer3321

New Member
I receive coordinate data in an XML file in the form of Latitude: 3876570Longitude:-9013376I am using XSL to convert the Lon/lat to have 8 digits instead of 7 (as above), so I need to append a zero at the end of the above coordinates. ie I needLatitude: 38765700Longitude:-90133760I am trying to use format-number() function, but not sure if I am using it correctly. I tried\[code\]<xsl:value-of select='format-number(longitude, "########")'/>\[/code\]and\[code\] <xsl:value-of select='format-number(longitude, "#######0")'/> \[/code\]I end up getting the 7 digits itself. Please help!
 
Back
Top