aboutsummaryrefslogtreecommitdiff
path: root/src/support/include_entity_resolver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/include_entity_resolver.h')
-rw-r--r--src/support/include_entity_resolver.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/support/include_entity_resolver.h b/src/support/include_entity_resolver.h
new file mode 100644
index 0000000..390cfe1
--- /dev/null
+++ b/src/support/include_entity_resolver.h
@@ -0,0 +1,30 @@
+#ifndef INPUTXSLT_SRC_SUPPORT_INCLUDE_ENTITY_RESOLVER_H_
+#define INPUTXSLT_SRC_SUPPORT_INCLUDE_ENTITY_RESOLVER_H_
+
+#include <xercesc/sax/EntityResolver.hpp>
+#include <xercesc/sax/InputSource.hpp>
+
+#include <string>
+#include <vector>
+
+#include "filesystem_context.h"
+
+namespace InputXSLT {
+
+class IncludeEntityResolver : public xercesc::EntityResolver {
+ public:
+ IncludeEntityResolver(const std::vector<std::string>&);
+
+ xercesc::InputSource* resolveEntity(
+ const XMLCh* const,
+ const XMLCh* const
+ );
+
+ private:
+ std::vector<FilesystemContext> path_;
+
+};
+
+}
+
+#endif // INPUTXSLT_SRC_SUPPORT_INCLUDE_ENTITY_RESOLVER_H_