From e9c4e2b716798002c9ccbf96ee509eb91ad56553 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Thu, 1 May 2014 18:14:33 +0200 Subject: Added basic parameter taking overload of TransformationFacade::generate * XSLT stylesheets may be provided with a set of initial parameters ** these parameters can be provided as the second argument to the generate member method in the form of a string to string mapping ** the XSLT standard also permitts number and node set types as value arguments of such input parameters but this is not supported by this change * expanded test transformation to demonstrate this feature --- test.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test.cc') diff --git a/test.cc b/test.cc index f15e1f6..2a6f886 100644 --- a/test.cc +++ b/test.cc @@ -5,5 +5,7 @@ int main() { InputXSLT::PlattformGuard plattform; InputXSLT::TransformationFacade transformation("../dummy/transform.xsl"); - return transformation.generate("out.xml"); + return transformation.generate("out.xml", { + {"test", "42"} + }); } -- cgit v1.2.3