Re: [xsl] How to convert day-of-month with xslt 2.0

Subject: Re: [xsl] How to convert day-of-month with xslt 2.0
From: Manfred Staudinger <manfred.staudinger@xxxxxxxxx>
Date: Tue, 23 Aug 2005 20:58:14 +0200
> if (number(input)) then format-number(translate(input,'()',''),'00') else
'00'
>
> which is more readable, perhaps.
The test I think should read
   if (number(translate(input,'()','')))
and the format-number() needs a number for the
first argument, but gets a string from translate().

Best regards, Manfred

Current Thread