Hi all,
Just wanted to post the solution.
In my personal HP-UX 11 environment (using Xalan 1.2, and Xerces 1.5.2 built with ICU 1.8), my SimpleTransform program wasn't finding some of the required ICU files.
Particularly, after compiling and linking with the following files in my bin, the sample program worked successfully:
cnvalias.dat
ibm-1051.cnv // For English or Latin XML source docs.
ibm-943_P14A-2000.cnv // For XML docs with encoding="Shift_JIS".
Downloaded a UNIX tool, tusc (or truss on Solaris), that gives a listing of libraries needed by an exe and if errors occurred. This was useful and helped us find the answer.
Thanks,
-Steve
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: April 10, 2003 11:33 AM
To: [email protected]
Subject: Re: Xalan Sample App (SimpleTransform) - Could not load local
code page transcoder
Hi Steve,
This is very odd, because that's an error message from Xerces-C, not from
Xalan. Looking on the link line, I see you're using the ICU, so have you
built a local version of Xerces that uses the ICU for transoding?
I would be very surprised if sample source code from Xalan-C 1.3, compiled
with Xalan-C 1.2, caused this problem. Can you verify that other samples
from Xalan-C 1.2 built in the same evironment work?
Dave
"Caputo, Steve"
<[EMAIL PROTECTED] To: [email protected]
gnos.com> cc: (bcc: David N Bertoni/Cambridge/IBM)
Subject: Xalan Sample App (SimpleTransform) - Could not load local code
04/10/2003 08:16 page transcoder
AM
Hi,
I'm trying to compile and link the sample SimpleTransform.cpp (attached)
that came with Xalan-C_1_3-hp-ux.tar.gz (from the apache.org downloads
site) on HP-UX 11.
The purpose of SimpleTransform is to take the given foo.xsl and foo.xml (in
the samples/SimpleTransform directory) and create foo.out.
I managed to compile and link it OK. I am using our existing xerces 1.5.2
and xalan 1.2. Did this with the following command:
/opt/aCC/bin/aCC -D __BIG_ENDIAN__
-I/solutionbuild/hpux/atlantic/isv/STLport/4.5/stlport -I
/solutionbuild/hpux/atlantic/isv/xerces/1.5.2/include -I
/solutionbuild/hpux/atlantic/isv/xalan/1.2/Distribution/c/src
-L/solutionbuild/hpux/atlantic/isv/xalan/1.2/bin -lxalan-c1_2
-L/solutionbuild/hpux/atlantic/isv/xerces/1.5.2/lib -lxerces-c1_5_2
-L/solutionbuild/hpux/atlantic/isv/icu/1.8/bin -licuuc -licui18n
SimpleTransform.cpp
When I try to run it, I get:
Could not load a local code page transcoder
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.
