diff options
author | Adrian Kummerlaender | 2014-10-11 23:23:36 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2014-10-11 23:23:36 +0200 |
commit | a4a7ee4f614e85f9952a4a8ea418e263512fc2ba (patch) | |
tree | 69642ddcfa8dd69c115e19a8c1a2de37fe756c51 /src | |
parent | 3c166ed07051b78bfcd40c7cabc376060cd96eb9 (diff) | |
download | InputXSLT-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
Diffstat (limited to 'src')
-rw-r--r-- | src/function/read_file.cc | 3 |
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 { |