Hi,
 
 I am trying to generate a HTML file by applying schema transform on a schema file. My xsl works fine with .xsd when I use some XML IDE but not able to do the same prgrammetically.  I am taking help from "simple transform" sample. here is the code snippet of my project...
I am using "Xalan-C_1_5_0D.dll",  Xalan-C_1D.lib ;  "xerces-c_2_1_0.vc6.d.dll" & "xerces-c_2_1_0.vc6.d.lib".
 
/**********************************************************************/
try
  {
    XALAN_USING_XERCES(XMLPlatformUtils)
    
    XALAN_USING_XALAN(XalanTransformer)
    
    // Call the static initializer for Xerces.
    XMLPlatformUtils::Initialize();
    // Initialize Xalan.
    XalanTransformer::initialize();
   
    {
      int theResult = -1;
  
      theResult = theXalanTransformer.transform((*xsdfiles).c_str(), xslFilePath_,(*opfiles).c_str());
  
       if(theResult != 0)
        {
           cerr << "SimpleTransform Error: \n" << theXalanTransformer.getLastError()
           << endl
           << endl;
        }
     }
  }
   
    // Terminate Xalan...
    XalanTransformer::terminate();
   
    // Terminate Xerces...
    XMLPlatformUtils::Terminate();
   
    // Clean up the ICU, if it's integrated...
    XalanTransformer::ICUCleanUp();
   
   
  }
  catch(...){
    cerr << "Initialization failed!" << endl;
  }
 
/****************************************************************************************/
 
Please tell if I am mising something... !
 
Thanks
Pankaj Bhatia
 
 
"You are what your deep driving desire is. As is your desire, so is your will. As is your will, so is your act. As is your act, so is your destiny." 
                                                                                                                                                                                                                         -Kathopanishad
 

Reply via email to