[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: 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
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member