From a4a7ee4f614e85f9952a4a8ea418e263512fc2ba Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 11 Oct 2014 23:23:36 +0200 Subject: Split path attribute of FunctionReadFile result tree into base and name * this is required to be able to resolve paths contained within a file relative to its location ** which is in turn needed to enable BuildXSLT modules without requiring the module transformations to be resolved using IncludeEntityResolver --- src/function/read_file.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/function/read_file.cc b/src/function/read_file.cc index 3718f04..fe9eea5 100644 --- a/src/function/read_file.cc +++ b/src/function/read_file.cc @@ -68,7 +68,8 @@ DomDocumentCache::document_ptr FunctionReadFile::constructDocument( ); ResultNodeFacade result(domDocument.get(), "file"); - result.setAttribute("path", filePath.string()); + result.setAttribute("name", filePath.filename().string()); + result.setAttribute("base", filePath.parent_path().string()); if ( boost::filesystem::is_regular_file(filePath) ) { try { -- cgit v1.2.3