diff options
| author | Adrian Kummerländer | 2014-04-27 17:24:30 +0200 | 
|---|---|---|
| committer | Adrian Kummerländer | 2014-04-27 17:24:30 +0200 | 
| commit | 947a8389728ff7d052fa820f598da3c17802f3d1 (patch) | |
| tree | c24c7f19ea9b7b6fb6999e1c065b38598ebd27df /src/function/read_file.cc | |
| parent | 5fde046561caa11a58abd13cf1f469fdce5c53f1 (diff) | |
| download | InputXSLT-947a8389728ff7d052fa820f598da3c17802f3d1.tar InputXSLT-947a8389728ff7d052fa820f598da3c17802f3d1.tar.gz InputXSLT-947a8389728ff7d052fa820f598da3c17802f3d1.tar.bz2 InputXSLT-947a8389728ff7d052fa820f598da3c17802f3d1.tar.lz InputXSLT-947a8389728ff7d052fa820f598da3c17802f3d1.tar.xz InputXSLT-947a8389728ff7d052fa820f598da3c17802f3d1.tar.zst InputXSLT-947a8389728ff7d052fa820f598da3c17802f3d1.zip | |
Added status information to external read-xml-file function
* XML tree is contained below the _content_ node if read was successful
** status is set to error otherwise
* updated test transformation accordingly
Diffstat (limited to 'src/function/read_file.cc')
| -rw-r--r-- | src/function/read_file.cc | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/src/function/read_file.cc b/src/function/read_file.cc index 6f02702..cfbec59 100644 --- a/src/function/read_file.cc +++ b/src/function/read_file.cc @@ -4,14 +4,12 @@  #include <xercesc/dom/DOMImplementation.hpp>  #include <xercesc/dom/DOMElement.hpp>  #include <xercesc/dom/DOMText.hpp> -#include <xercesc/util/XMLString.hpp>  #include "boost/filesystem/fstream.hpp"  #include <fstream>  #include "support/xerces_string_guard.h" -#include "support/utility.h"  namespace InputXSLT { @@ -30,7 +28,7 @@ xalan::XObjectPtr FunctionReadFile::execute(  	);  	DomDocumentCache::item* const cachedDocument( -		this->document_cache_->get(xalanToString(argument->str())) +		this->document_cache_->get(filePath.string())  	);  	if ( !cachedDocument->isFinalized() ) { | 
