From eba5513f82f0e1458543e8646db0317d7211cf96 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Sat, 26 Apr 2014 20:06:17 +0200 Subject: Converted external read-file function output into a node set * A call to _read-file_ now returns a _content_ and _status_ node ** this enables XSL transformations to easily react to io related errors * fixed bug in path resolution ** boost::filesystem _canonical_ method is throwing and exception when the given path does not exist, this pulled down the whole stack ** replaced call to _canonical_ with call to _absolute_ which does not have this requirement --- dummy/transform.xsl | 25 ++++++----- src/function/read_file.cc | 89 +++++++++++++++++++++++++++++++++------ src/function/read_file.h | 2 + src/support/filesystem_context.cc | 2 +- 4 files changed, 95 insertions(+), 23 deletions(-) diff --git a/dummy/transform.xsl b/dummy/transform.xsl index 62d28c2..323ecdb 100644 --- a/dummy/transform.xsl +++ b/dummy/transform.xsl @@ -1,7 +1,9 @@ - + xmlns:external="http://ExternalFunction.xalan-c++.xml.apache.org" +>
- + + + + + + + Failed to read test.txt + +
- -