ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Bender/Bender.cpp
(Generate patch)

Comparing Bender/Bender.cpp (file contents):
Revision 111 by Douglas Thrift, 2004-03-15T23:16:54-08:00 vs.
Revision 113 by Douglas Thrift, 2004-03-16T12:31:22-08:00

# Line 5 | Line 5
5   // $Id$
6  
7   #include "Bender.hpp"
8 + #include "Matcher.hpp"
9 +
10 + #include <xalanc/Include/PlatformDefinitions.hpp>
11 + #include <xercesc/util/PlatformUtils.hpp>
12 + #include <xalanc/XalanTransformer/XalanTransformer.hpp>
13 +
14 + XALAN_USING_XERCES(XMLPlatformUtils)
15 + XALAN_USING_XALAN(XalanTransformer)
16  
17   int main(int argc, char* argv[])
18   {
# Line 30 | Line 38 | Bender::Bender()
38                  
39                  XalanTransformer transformer;
40  
41 <                transformer.transform(path.c_str(), cout);
41 >                if (transformer.transform(path.c_str(), cout) != 0)
42 >                {
43 >                        ifstream fin(path.c_str());
44 >                        string line;
45 >
46 >                        do
47 >                        {
48 >                                getline(fin, line);
49 >
50 >                                cout << line << "\n";
51 >                        }
52 >                        while (fin.good());
53 >                }
54          }
55   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines