You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Per Cederin <Pe...@se.consafelogistics.com> on 2008/11/18 08:27:58 UTC

FunctionICUFormatNumber

Hi,

 

I am using xerces 2.7 an xalan 1.10. 

When using, ICU to support number formatting and sorting, 

the "Basic usage patterns" describes that the header file:

 

#include <xalanc/ICUBridge/FunctionICUFormatNumber.hpp>

 

among others, should be included. 

 

That file is not found in the xalan package and therefore could the
following not be performed:

// Install ICU support for the format-number() function.
FunctionICUFormatNumber::FunctionICUFormatNumberInstaller theInstaller;

 

 

Is the "Basic usage patterns" wrong? And how should I processed to have
support for format number?

 

Regards, 

Per

 

 

 


Re: FunctionICUFormatNumber

Posted by David Bertoni <db...@apache.org>.
Per Cederin wrote:
> Hi,
> 
> I am using xerces 2.7 an xalan 1.10.
> 
> When using, ICU to support number formatting and sorting,
> 
> the “Basic usage patterns” describes that the header file:
> 
> #include <xalanc/ICUBridge/FunctionICUFormatNumber.hpp>
> 
> among others, should be included.
> 
> That file is not found in the xalan package and therefore could the 
> following not be performed:
> 
> // Install ICU support for the format-number() function.
> 
> FunctionICUFormatNumber::FunctionICUFormatNumberInstaller theInstaller;
OK, that documentation is out of date.  Can you please file a Jira issue 
so I can update it?

If you're using the XalanTransformer class, the easiest thing to do is 
to re-build Xalan with ICU support integrated.  If you read the rest of 
the page, you'll see the instructions for doing that. The 
XalanTransformer constructor takes care of doing all of the necessary 
steps to integrate the ICU.

If you're not using the XalanTransformer class, then you can take a look 
at the what the constructor does, but it's best if you use the 
XalanTransformer class instead.

Dave