diff options
author | Adrian Kummerländer | 2014-04-26 20:06:17 +0200 |
---|---|---|
committer | Adrian Kummerländer | 2014-04-26 20:06:17 +0200 |
commit | eba5513f82f0e1458543e8646db0317d7211cf96 (patch) | |
tree | 67b0238322b10d34c5caf45200aae1cbd548a7b0 /src/function/read_file.h | |
parent | 7e7b112e6c00bcce0b339652748079cf7c9f1430 (diff) | |
download | InputXSLT-eba5513f82f0e1458543e8646db0317d7211cf96.tar InputXSLT-eba5513f82f0e1458543e8646db0317d7211cf96.tar.gz InputXSLT-eba5513f82f0e1458543e8646db0317d7211cf96.tar.bz2 InputXSLT-eba5513f82f0e1458543e8646db0317d7211cf96.tar.lz InputXSLT-eba5513f82f0e1458543e8646db0317d7211cf96.tar.xz InputXSLT-eba5513f82f0e1458543e8646db0317d7211cf96.tar.zst InputXSLT-eba5513f82f0e1458543e8646db0317d7211cf96.zip |
Converted external read-file function output into a node set
* A call to _read-file_ now returns a _content_ and _status_ node
** this enables XSL transformations to easily react to io related errors
* fixed bug in path resolution
** boost::filesystem _canonical_ method is throwing and exception when the given path does not exist, this pulled down the whole stack
** replaced call to _canonical_ with call to _absolute_ which does not have this requirement
Diffstat (limited to 'src/function/read_file.h')
-rw-r--r-- | src/function/read_file.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/function/read_file.h b/src/function/read_file.h index 2d1dedf..6f38e95 100644 --- a/src/function/read_file.h +++ b/src/function/read_file.h @@ -10,6 +10,7 @@ #include "common.h" #include "support/filesystem_context.h" +#include "support/dom/document_cache.h" namespace InputXSLT { @@ -31,6 +32,7 @@ class FunctionReadFile : public xalan::Function { private: const FilesystemContext& fs_context_; + std::shared_ptr<DomDocumentCache> document_cache_; const xalan::XalanDOMString& getError(xalan::XalanDOMString&) const; |