From 35334241ce4b76b1b1a66219ce938f27fdf39031 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Tue, 20 May 2014 21:17:10 +0200 Subject: Replaced FunctionResolveInclude with IncludeEntityResolver * xalan / xerces offers the possibility of implementing custom entity resolvers which are called upon by "" had to be implemented --- src/support/include_entity_resolver.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/support/include_entity_resolver.h (limited to 'src/support/include_entity_resolver.h') 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 +#include + +#include +#include + +#include "filesystem_context.h" + +namespace InputXSLT { + +class IncludeEntityResolver : public xercesc::EntityResolver { + public: + IncludeEntityResolver(const std::vector&); + + xercesc::InputSource* resolveEntity( + const XMLCh* const, + const XMLCh* const + ); + + private: + std::vector path_; + +}; + +} + +#endif // INPUTXSLT_SRC_SUPPORT_INCLUDE_ENTITY_RESOLVER_H_ -- cgit v1.2.3