From 1a744712426c9c19019b8ebebdd0c703aae204a6 Mon Sep 17 00:00:00 2001
From: Adrian Kummerländer
Date: Sat, 31 May 2014 14:18:48 +0200
Subject: Revamped external function result trees * the root node of the result
tree of each function is a domain element ** i.e. the root node of
"read-xml-file" is "file", the root node of "read-directory" is "directory" *
the root node contains the result state of the function call encoded in a
"result" attribute ** possible values are "success" and "error" ** the root
node may contain additional attributes such as the target path of a called
transformation * the actual function result is contained within the child
nodes of the function root node ** i.e. the XML file tree returned by
"read-xml-file" is a child of the function root node ** if specific errors
occured they are also returned as child nodes of the function root node ***
this is currently only the case for "transform" where transformation errors
are returned as "error" value node childs of the function root node * updated
test cases accordingly
---
test/external_text_formatter/transformation.xsl | 19 ++++++++++++----
test/read_directory/transformation.xsl | 30 +++++++++++++++++--------
test/read_file/transformation.xsl | 16 +++++++++++--
test/read_xml_file/transformation.xsl | 20 +++++++++++++----
test/transform/transformation.xsl | 8 +++----
5 files changed, 70 insertions(+), 23 deletions(-)
(limited to 'test')
diff --git a/test/external_text_formatter/transformation.xsl b/test/external_text_formatter/transformation.xsl
index 00fe3b3..a94f211 100644
--- a/test/external_text_formatter/transformation.xsl
+++ b/test/external_text_formatter/transformation.xsl
@@ -20,13 +20,24 @@
)
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ Failure during external text formatting
+
+
diff --git a/test/read_directory/transformation.xsl b/test/read_directory/transformation.xsl
index 9a9a057..f1446a2 100644
--- a/test/read_directory/transformation.xsl
+++ b/test/read_directory/transformation.xsl
@@ -2,22 +2,34 @@
-
- -
-
+
+
+
-
-
-
-
-
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+ Error during directory io
+
+
diff --git a/test/read_file/transformation.xsl b/test/read_file/transformation.xsl
index f773e0e..9610046 100644
--- a/test/read_file/transformation.xsl
+++ b/test/read_file/transformation.xsl
@@ -2,14 +2,26 @@
-
+
+
+
+
+
+
+
+
+
+ Error during file io
+
+
diff --git a/test/read_xml_file/transformation.xsl b/test/read_xml_file/transformation.xsl
index 2a6c5e5..f23273e 100644
--- a/test/read_xml_file/transformation.xsl
+++ b/test/read_xml_file/transformation.xsl
@@ -2,16 +2,28 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ Error during file io
+
+
diff --git a/test/transform/transformation.xsl b/test/transform/transformation.xsl
index 19c42ae..412036b 100644
--- a/test/transform/transformation.xsl
+++ b/test/transform/transformation.xsl
@@ -38,13 +38,13 @@
-
-
-
-
+
+
+
+
--
cgit v1.2.3