You do not need to link your application against the ICU -- as long as
Xalan linked correctly, that's all you need.
You do not need to do anything with theInstaller. If you look at the
source code, you'll see the constructor installs the new function and the
destructor uninstalls it and re-installs the standard one. If you're using
XalanTransformer, and you've defined XALN_USE_ICU, the integration is
automatic, and you will not need
If the ICU is not working properly, you should see a warning when you use
xsl:format-number(). If not, you might want to debug into the code to see
what's going wrong. The usual problem is that the ICUROOT environment
variable is not set correctly, or the libraries are not where they are
supposed to be. In particular, the ICU's data shared library
libicudt20l.so (the really big one), must be with the other ICU shared
libraries. There also may be an issue with permissions on the libraries.
Dave
Arun Ramdas
<[EMAIL PROTECTED] To:
[email protected]
com> cc: (bcc: David N
Bertoni/Cambridge/IBM)
Subject: RE: problems in Number
formatting with Xalan-c
03/14/2002 04:14
PM
I am not able to achieve the number formatting, even i did the following
steps
1)I installed ICU to enable number formatting in XSL transformation.
2) I set the following environment variables
ICUROOT, LD_LIBRARY_PATH(After build) and XALAN_USE_ICU
3) Then i linked icu library libicuuc.so (or should i link some other
library?) with my sources...
4)and finally included the following line and the specified header files as
per the documentation
FunctionICUFormatNumber::FunctionICUFormatNumberInstaller theInstaller;
Do i have to include this line just before the transformation? and what do
i
do with the variable "theInstaller"?
Thanks
Arun
-----Original Message-----
From: David N Bertoni/Cambridge/IBM [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 13, 2002 3:35 PM
To: [email protected]
Subject: Re: problems in Number formatting with Xalan-c
Please read the documentation. You need to obtain the ICU, build it, then
build Xalan-C with ICU integration. The documentation covers this in
detail.
Dave
Arun Ramdas
<[EMAIL PROTECTED] To:
[email protected]
com> cc: (bcc: David N
Bertoni/Cambridge/IBM)
Subject: problems in Number
formatting with Xalan-c
03/13/2002 02:21
PM
I am trying to format a floating point number. It seems to be working fine
with Xalan-java but not with Xalan-c
Here is what i do in the xsl
Input: 2.345456
<xsl:value-of select="format-number($changes,'###.##%')"/>
I want the o/p as 2.35
Can anyone help me out?
Thanks
Arun Ramadoss