aboutsummaryrefslogtreecommitdiff
path: root/src/transformer_facade.h
blob: 17db094f06d6df4b87ed7515aa26744f4791e6a4 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef INPUTXSLT_SRC_TRANSFORMER_FACADE_H_
#define INPUTXSLT_SRC_TRANSFORMER_FACADE_H_

#include <xalanc/XalanTransformer/XalanTransformer.hpp>

#include "common.h"
#include "support/include_entity_resolver.h"
#include "support/error/error_multiplexer.h"
#include "support/error/error_capacitor.h"
#include "support/error/warning_capacitor.h"

namespace InputXSLT {

class TransformerFacade {
	public:
		TransformerFacade(IncludeEntityResolver*);

		void generate(
			const xalan::XSLTInputSource&,
			const xalan::XSLTInputSource&,
			xalan::FormatterListener&
		);

		void generate(
			const xalan::XSLTInputSource&,
			xalan::FormatterListener&
		);

		WarningCapacitor::warning_cache_ptr getCachedWarnings();

	private:
		xalan::XalanTransformer transformer_;
		ErrorMultiplexer error_multiplexer_;
		WarningCapacitor warning_capacitor_;

		void generate(
			xalan::XalanNode* const,
			const xalan::XSLTInputSource&,
			xalan::FormatterListener&
		);

};

}

#endif  // INPUTXSLT_SRC_TRANSFORMER_FACADE_H_