aboutsummaryrefslogtreecommitdiff
path: root/src/transformation_facade.h
blob: 3acb364bd94796c381d53bb997ea3c171e5bd0d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef INPUTXSLT_SRC_TRANSFORMATION_FACADE_H_
#define INPUTXSLT_SRC_TRANSFORMATION_FACADE_H_

#include <xalanc/XalanTransformer/XalanTransformer.hpp>

#include <string>

#include "common.h"
#include "support/filesystem_context.h"
#include "support/dom/document_cache.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_;
		DomDocumentCache document_cache_;

};

}

#endif  // INPUTXSLT_SRC_TRANSFORMATION_FACADE_H_