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>
--~--