From 5859cb6af4a5136a96971c47e41e6195007ef944 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Wed, 28 May 2014 21:51:39 +0200 Subject: 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 --- src/transformation_facade.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/transformation_facade.h') 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 #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&, StylesheetParameterGuard&); -- cgit v1.2.3