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 |
|
{ |
30 |
|
|
31 |
|
Bender::Bender() |
32 |
|
{ |
33 |
< |
// |
33 |
> |
string path = sgetenv("PATH_TRANSLATED"); |
34 |
> |
|
35 |
> |
if (path != "") |
36 |
> |
{ |
37 |
> |
cout << "Content-Type: text/html\n\n"; |
38 |
> |
|
39 |
> |
XalanTransformer transformer; |
40 |
> |
|
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 |
|
} |