aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-10-11 23:23:36 +0200
committerAdrian Kummerlaender2014-10-11 23:23:36 +0200
commita4a7ee4f614e85f9952a4a8ea418e263512fc2ba (patch)
tree69642ddcfa8dd69c115e19a8c1a2de37fe756c51
parent3c166ed07051b78bfcd40c7cabc376060cd96eb9 (diff)
downloadInputXSLT-a4a7ee4f614e85f9952a4a8ea418e263512fc2ba.tar
InputXSLT-a4a7ee4f614e85f9952a4a8ea418e263512fc2ba.tar.gz
InputXSLT-a4a7ee4f614e85f9952a4a8ea418e263512fc2ba.tar.bz2
InputXSLT-a4a7ee4f614e85f9952a4a8ea418e263512fc2ba.tar.lz
InputXSLT-a4a7ee4f614e85f9952a4a8ea418e263512fc2ba.tar.xz
InputXSLT-a4a7ee4f614e85f9952a4a8ea418e263512fc2ba.tar.zst
InputXSLT-a4a7ee4f614e85f9952a4a8ea418e263512fc2ba.zip
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
-rw-r--r--src/function/read_file.cc3
1 files changed, 2 insertions, 1 deletions
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 {