diff options
author | Adrian Kummerländer | 2014-05-20 21:17:10 +0200 |
---|---|---|
committer | Adrian Kummerländer | 2014-05-20 21:17:10 +0200 |
commit | 35334241ce4b76b1b1a66219ce938f27fdf39031 (patch) | |
tree | 1bad6d46b957e47eac2127f16198876cf7fe8450 /src/function/resolve_include.h | |
parent | 426265b91d4533b7aa16d53124ad9b5d0a6862d6 (diff) | |
download | InputXSLT-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/function/resolve_include.h')
-rw-r--r-- | src/function/resolve_include.h | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/function/resolve_include.h b/src/function/resolve_include.h deleted file mode 100644 index 2d6e62f..0000000 --- a/src/function/resolve_include.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef INPUTXSLT_SRC_FUNCTION_RESOLVE_INCLUDE_H_ -#define INPUTXSLT_SRC_FUNCTION_RESOLVE_INCLUDE_H_ - -#include <xalanc/XPath/XObjectFactory.hpp> -#include <xalanc/XPath/Function.hpp> -#include <xalanc/XPath/XObject.hpp> - -#include "boost/filesystem.hpp" - -#include <memory> -#include <string> -#include <vector> - -#include "common.h" -#include "support/filesystem_context.h" - -namespace InputXSLT { - -class FunctionResolveInclude : public xalan::Function { - public: - FunctionResolveInclude(const std::vector<std::string>&); - - virtual xalan::XObjectPtr execute( - xalan::XPathExecutionContext&, - xalan::XalanNode*, - const xalan::XObjectPtr, - const xalan::Locator* - ) const; - - virtual FunctionResolveInclude* clone(xalan::MemoryManager&) const; - - FunctionResolveInclude& operator=(const FunctionResolveInclude&) = delete; - bool operator==(const FunctionResolveInclude&) const = delete; - - private: - const std::shared_ptr<std::vector<FilesystemContext>> path_; - - const xalan::XalanDOMString& getError(xalan::XalanDOMString&) const; - -}; - -} - -#endif // INPUTXSLT_SRC_FUNCTION_RESOLVE_INCLUDE_H_ |