From e805000b1841691cd58930e80bd896a4f7611fd0 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Tue, 10 Jun 2014 22:27:24 +0200 Subject: Added input file support to ixslt * a single file may be passed to the XSLT processor as input ** the file is read once and stored within a xalan::XalanParsedSource to be reused by all calls to "TransformationFacade::generate" * added appropriate TranformationFacade constructor overload ** this new constructor overload which is taking a path to both the transformation and the input file is the main constructor *** the old constructor is now only a alias for this new constructor * adapted static "try_create" TransformationFacade factory method into variadic template factory method * added optional "--input" argument to ixslt ** expanded option handling accordingly --- src/function/transform.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/function/transform.cc') diff --git a/src/function/transform.cc b/src/function/transform.cc index 059260d..9f0e98a 100644 --- a/src/function/transform.cc +++ b/src/function/transform.cc @@ -54,9 +54,9 @@ xercesc::DOMDocument* FunctionTransform::constructDocument( ); if ( auto transformation = TransformationFacade::try_create( + handleErrors(result), fsContext.resolve(transformationPath).string(), - this->include_resolver_, - handleErrors(result) + this->include_resolver_ ) ) { try { transformation->generate( -- cgit v1.2.3