dbertoni    01/06/06 15:26:47

  Modified:    c/samples/SimpleTransform SimpleTransform.cpp
  Log:
  Simplified sample.
  
  Revision  Changes    Path
  1.14      +12 -17    xml-xalan/c/samples/SimpleTransform/SimpleTransform.cpp
  
  Index: SimpleTransform.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/samples/SimpleTransform/SimpleTransform.cpp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- SimpleTransform.cpp       2001/04/19 18:44:54     1.13
  +++ SimpleTransform.cpp       2001/06/06 22:26:45     1.14
  @@ -39,25 +39,20 @@
                // Initialize Xalan.
                XalanTransformer::initialize();
   
  -             // Create a XalanTransformer.
  -             XalanTransformer theXalanTransformer;
  -
  -             // Our input files...The assumption is that the executable will 
be run
  -             // from same directory as the input files.
  -             const char*             theXMLFileName = "foo.xml";
  -             const char*             theXSLFileName = "foo.xsl";
  +             {
  +                     // Create a XalanTransformer.
  +                     XalanTransformer theXalanTransformer;
   
  -             // Our output target...
  -             const char*     theOutputFileName = "foo.out";
  +                     // The assumption is that the executable will be run
  +                     // from same directory as the input files.
  +                     theResult = theXalanTransformer.transform("foo.xml", 
"foo.xsl", "foo.out");
   
  -             // Do the transform.
  -             theResult = theXalanTransformer.transform(theXMLFileName, 
theXSLFileName, theOutputFileName);
  -    
  -             if(theResult != 0)
  -             {
  -                     cerr << "SimpleTransform Error: \n" << 
theXalanTransformer.getLastError()
  -                              << endl
  -                              << endl;
  +                     if(theResult != 0)
  +                     {
  +                             cerr << "SimpleTransform Error: \n" << 
theXalanTransformer.getLastError()
  +                                      << endl
  +                                      << endl;
  +                     }
                }
   
                // Terminate Xalan.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to