Hello
eveybody:
I'm newbie on Xerces-C and Xalan-C developing.
I'm just doing a simple application, like SimpleTransform sample from Xalan's
samples.
The code is
merely like that:
XalanTransformer::initialize();
XMLPlatformUtils::Initialize();
XMLPlatformUtils::Initialize();
const char* inFile = "foo.xml"; // With xsl stylesheet included
inside
const char* outFile = "output.html";
XalanTransformer transformer;
int result = transformer.transform(inFile,outFile);
XalanTransformer::terminate();
XMLPlatformUtils::Terminate();
XMLPlatformUtils::Terminate();
I
try to use XalanTransformer object to transform a XML with XSL stylesheet to a
HTML output.
XML and XSL files have ISO-8859-1 encoding, and have special symbols like: �, �,
etc.
When I transform this XML with the XSL via Xalan-C and Xerces-C, I achieve an
.html file, well formed, but with all this symbols corrupted like º instead of
�, etc.
When I see the encoding of the resultant output file I can see that the encoding
passed to the file, I supose that it's done by Xalan or Xerces, is
UTF-8.
Yet, I don't use ICU, if I install ICU and rebuild Xalan (may I rebuild Xerces-C
too? If so, how?), it would work?
I
have to use some other XalanC classes?
Please help a newbie.
Thanks for
advance.
| Aitor Illarramendi Amilibia | |
|
Ingeniero de software
Detecci�n, Mando y Control | |
![]() | |
|
Carretera de Loeches, 9
28850 - Torrej�n de Ardoz, Madrid (ESPA�A) Tel: +34-91-396.82.47 Fax: +34-91-396.81.14 | |

