diff options
Diffstat (limited to 'src/function/read_file.cc')
-rw-r--r-- | src/function/read_file.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/function/read_file.cc b/src/function/read_file.cc index da0e988..19ca296 100644 --- a/src/function/read_file.cc +++ b/src/function/read_file.cc @@ -25,10 +25,12 @@ inline std::string readFile(const boost::filesystem::path& filePath) { namespace InputXSLT { xercesc::DOMDocument* FunctionReadFile::constructDocument( - const FilesystemContext&, + const FilesystemContext& fsContext, const FunctionBase::argument_array& arguments ) { - const boost::filesystem::path& filePath = arguments[0]; + const boost::filesystem::path filePath( + fsContext.resolve(arguments[0]) + ); xercesc::DOMDocument* const domDocument( xercesc::DOMImplementation::getImplementation()->createDocument( |