aboutsummaryrefslogtreecommitdiff
path: root/src/plattform_guard.h
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-05-20 21:17:10 +0200
committerAdrian Kummerländer2014-05-20 21:17:10 +0200
commit35334241ce4b76b1b1a66219ce938f27fdf39031 (patch)
tree1bad6d46b957e47eac2127f16198876cf7fe8450 /src/plattform_guard.h
parent426265b91d4533b7aa16d53124ad9b5d0a6862d6 (diff)
downloadInputXSLT-35334241ce4b76b1b1a66219ce938f27fdf39031.tar
InputXSLT-35334241ce4b76b1b1a66219ce938f27fdf39031.tar.gz
InputXSLT-35334241ce4b76b1b1a66219ce938f27fdf39031.tar.bz2
InputXSLT-35334241ce4b76b1b1a66219ce938f27fdf39031.tar.lz
InputXSLT-35334241ce4b76b1b1a66219ce938f27fdf39031.tar.xz
InputXSLT-35334241ce4b76b1b1a66219ce938f27fdf39031.tar.zst
InputXSLT-35334241ce4b76b1b1a66219ce938f27fdf39031.zip
Replaced FunctionResolveInclude with IncludeEntityResolver
* xalan / xerces offers the possibility of implementing custom entity resolvers which are called upon by "<xsl:include..." ** such a custom resolver was implemented to resolve include path entities * this is a much better way to support include paths than offering a custom external "resolve-include" function * as entity paths are expanded before they are passed to the entity resolver, a special "[path]" syntax simmilar to "#include <path>" had to be implemented
Diffstat (limited to 'src/plattform_guard.h')
-rw-r--r--src/plattform_guard.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/plattform_guard.h b/src/plattform_guard.h
index f6abcba..ccc9449 100644
--- a/src/plattform_guard.h
+++ b/src/plattform_guard.h
@@ -4,11 +4,20 @@
#include <string>
#include <vector>
+#include "support/include_entity_resolver.h"
+
namespace InputXSLT {
-struct PlattformGuard {
- PlattformGuard(const std::vector<std::string>&);
- ~PlattformGuard();
+class PlattformGuard {
+ public:
+ PlattformGuard(const std::vector<std::string>&);
+ ~PlattformGuard();
+
+ IncludeEntityResolver* getEntityResolver();
+
+ private:
+ IncludeEntityResolver include_resolver_;
+
};
}