Hi xAlan Experts,

Version of Apache xAlan used:  1.2 
We have a xFunction defined (i.e. named JavaScriptEncode) with the
interface:

XObjectPtr  FunctionJavascriptEncode::execute(
        XPathExecutionContext&                  executionContext,
        XalanNode*                                              context,
        int                                                             /*
opPos */,
        const XObjectArgVectorType&             args)
{
   // expect one argument.
   XalanDOMString theString = args[0]->str();
  .
  .
  .
}

The problem is that on Japanese UNIX (tested on HP and Solaris), we lose the
message string passed through to args, and as a result, our generated web
page displays no string.

The problem does not occur on Japanese windows, or using ascii strings on
English UNIX.

I figured out that the problem also only occurs on Japanese UNIX when the
size of the string passed (that is, a string x.c_str()) equals or exceeds 31
multi byte characters!

Is this a limitation to XObjectArgVectorType?  Any ideas to solve this
problem?  I'm new to XSLT and could not find anything useful in the xAlan
class documentation.

Thanks for any help.

Steve Caputo
Software Engineer
Cognos, Inc.



This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

Reply via email to