Greetings,

I'm using Xalan C++ on Win2K (not my choice!), with the latest Microsoft
patches for both VC6.0 (Standard Edition, SP5) and Operation System(SP2).

When I use the commandline XalanTransform, it works nicely.  When I rebuild
it, it works nicely.  When I take the guts of it and place it into another
C++ program (basically, cut and paste), I get an exception called every time
XalanTransformer theXalanTransformer; is issued.  The program compiles/links
with zero errors and warnings.

Any pearls of wisdom that can be sent my way on how to move past this
problem?  More than likely, it is operator error, but I am having an issue
seeing the forrest for the trees.

I've included the snippet of code at the end.

Thanks in advance for your assistance!

Dave

--> begin include <--

        XMLPlatformUtils::Initialize();
        XalanTransformer::initialize();
        XalanTransformer theXalanTransformer;
        const char* xmlIn = "c:/temp/foo.xml";
        const char* xslSheet = "c:/temp/foo.xsl";
        const char* xmlOut = "c:/temp/foo.out";
        int theResult = 0;
        theResult =
     theXalanTransformer.transform(xmlIn,xslSheet,xmlOut);
        XalanTransformer::terminate();
        XMLPlatformUtils::Terminate(); 

--> end include <--

Reply via email to