At 15.47 19/11/2002 +1100, you wrote:
I guess the error is happening because you are invoking XalanTransformer::terminate() and XMLPlatformUtils::Terminate() *before* the destructor of the XalanTransformer object is run.Hi folks. I've got a strange error that keeps cropping up, using Xalan. The code below crashes on the transform line, and the error seems to be deep in the bowels of Xerces, according to the stack trace. I'm using xalan 1.4.0 with xerces 2.1.0.If you have any ideas as to what might be causing the problem, let me know.
Try changing the code into:
int main(int argc, char* argv[])
{
XMLPlatformUtils::Initialize();
XalanTransformer::initialize();
{ <------------
XalanTransformer transformer;
transformer.setUseValidation(false);
int nResult = transformer.transform("D:\\saxon\\test_data.xml", "D:\\saxon\\validate.xsl", std::cout);
} <------------
XalanTransformer::terminate();
XMLPlatformUtils::Terminate();
return 0;
}
Alberto
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
