xsl-list
[Top] [All Lists]

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

2005-08-23 11:58:14
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>