12 |
|
#include <menes-api/process.hpp> |
13 |
|
#include <menes-app/simple.hpp> |
14 |
|
|
15 |
< |
struct Environment |
15 |
> |
struct |
16 |
|
{ |
17 |
|
ext::String get(const ext::String& name) |
18 |
|
{ |
91 |
|
|
92 |
|
void Bender::bend(const ext::String& path) |
93 |
|
{ |
94 |
< |
_L<ext::String> args(1, path); |
95 |
< |
_S<api::Process> xslt("/usr/local/bin/xsltproc", args); |
94 |
> |
_L<ext::String> args(1, "-IN"); |
95 |
> |
|
96 |
> |
args.InsertLast(path); |
97 |
> |
|
98 |
> |
_S<api::Process> xslt("/usr/local/bin/xalan-j", args); |
99 |
|
ios::String output; |
100 |
|
|
101 |
|
ios::ReadToWrite(*xslt.GetReader(), output); |
110 |
|
api::Cout << "Content-Type: " << type << "\r\n\r\n" << output; |
111 |
|
} |
112 |
|
else pass(path); |
113 |
+ |
|
114 |
+ |
xslt.Join(); |
115 |
|
} |
116 |
|
|
117 |
|
void Bender::pass(const ext::String& path) |