Subject: [xsl] format-number using variable format string From: "Nick James" <nicholasjames2@xxxxxxxxxxx> Date: Fri, 07 Sep 2007 14:54:25 +0000 |
My problem is that I want to format some numbers in an xml file in a fixed way, yet one which I can change relatively easily if need be. If we have the file problem.xml:
<?xml version="1.0" encoding="utf-8"?> <numbers> <number>22222.444444</number> <number>2.5555555</number> <number>999999.444444</number> <number>22222.444444</number> </numbers> and the file problem.xsl:
the output is $ xsltproc problem.xsl problem.xml
22222 3 999999 22222
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Fo:table keeps-with-next, Copley, Sarah | Thread | Re: [xsl] format-number using varia, David Carlisle |
Re: [xsl] In Search of People Who K, Andrew Welch | Date | RE: [xsl] format-number using varia, Carl Radley |
Month |