aboutsummaryrefslogtreecommitdiff
path: root/src/transformation_facade.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transformation_facade.h')
-rw-r--r--src/transformation_facade.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/transformation_facade.h b/src/transformation_facade.h
new file mode 100644
index 0000000..715d72e
--- /dev/null
+++ b/src/transformation_facade.h
@@ -0,0 +1,31 @@
+#ifndef INPUTXSLT_SRC_TRANSFORMATION_FACADE_H_
+#define INPUTXSLT_SRC_TRANSFORMATION_FACADE_H_
+
+#include <string>
+
+#include <xalanc/XalanTransformer/XalanTransformer.hpp>
+#include <xalanc/XercesParserLiaison/XercesParserLiaison.hpp>
+
+#include "common.h"
+#include "support/filesystem_context.h"
+
+namespace InputXSLT {
+
+class TransformationFacade {
+ public:
+ TransformationFacade(const std::string&);
+ ~TransformationFacade();
+
+ int generate(const std::string&);
+
+ private:
+ const FilesystemContext fs_context_;
+ const xalan::XalanCompiledStylesheet* transformation_;
+
+ xalan::XalanTransformer transformer_;
+
+};
+
+}
+
+#endif // INPUTXSLT_SRC_TRANSFORMATION_FACADE_H_