aboutsummaryrefslogtreecommitdiff
path: root/src/transformation_facade.h
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-05-28 21:51:39 +0200
committerAdrian Kummerländer2014-05-28 21:51:39 +0200
commit5859cb6af4a5136a96971c47e41e6195007ef944 (patch)
tree77431a85377b3b3742bcdb6c30526d957f9f61c1 /src/transformation_facade.h
parent802d416040aa31d72defa7a9227cd31b0885bc60 (diff)
downloadInputXSLT-5859cb6af4a5136a96971c47e41e6195007ef944.tar
InputXSLT-5859cb6af4a5136a96971c47e41e6195007ef944.tar.gz
InputXSLT-5859cb6af4a5136a96971c47e41e6195007ef944.tar.bz2
InputXSLT-5859cb6af4a5136a96971c47e41e6195007ef944.tar.lz
InputXSLT-5859cb6af4a5136a96971c47e41e6195007ef944.tar.xz
InputXSLT-5859cb6af4a5136a96971c47e41e6195007ef944.tar.zst
InputXSLT-5859cb6af4a5136a96971c47e41e6195007ef944.zip
Implemented basic ErrorHandler
* InputXSLT::ErrorHandler is derived from xercesc::ErrorHandler and enables contextual printing of transformation errors ** currently this means that the error messages passed to std::cerr contain the full path of the offending transformation * added input trimming to the external transform function ** calls to this function from inside a transformation may contain unnecessary whitespace characters which disrupt further processing
Diffstat (limited to 'src/transformation_facade.h')
-rw-r--r--src/transformation_facade.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/transformation_facade.h b/src/transformation_facade.h
index 1e09248..ab76cac 100644
--- a/src/transformation_facade.h
+++ b/src/transformation_facade.h
@@ -6,6 +6,7 @@
#include <string>
#include "common.h"
+#include "support/error_handler.h"
#include "support/include_entity_resolver.h"
#include "support/stylesheet_parameter_guard.h"
@@ -29,6 +30,7 @@ class TransformationFacade {
const xalan::XalanCompiledStylesheet* transformation_;
xalan::XalanTransformer transformer_;
+ ErrorHandler error_handler_;
int generate(const std::string&, StylesheetParameterGuard&);
int generate(std::basic_ostream<char>&, StylesheetParameterGuard&);