diff options
author | Adrian Kummerländer | 2014-05-01 18:14:33 +0200 |
---|---|---|
committer | Adrian Kummerländer | 2014-05-01 18:14:33 +0200 |
commit | e9c4e2b716798002c9ccbf96ee509eb91ad56553 (patch) | |
tree | 6032d0bac105a0c015a9042fb858dc853893a8a9 /test.cc | |
parent | 29a6c1ab8b82491bcd54ad027e45644fde09ef59 (diff) | |
download | InputXSLT-e9c4e2b716798002c9ccbf96ee509eb91ad56553.tar InputXSLT-e9c4e2b716798002c9ccbf96ee509eb91ad56553.tar.gz InputXSLT-e9c4e2b716798002c9ccbf96ee509eb91ad56553.tar.bz2 InputXSLT-e9c4e2b716798002c9ccbf96ee509eb91ad56553.tar.lz InputXSLT-e9c4e2b716798002c9ccbf96ee509eb91ad56553.tar.xz InputXSLT-e9c4e2b716798002c9ccbf96ee509eb91ad56553.tar.zst InputXSLT-e9c4e2b716798002c9ccbf96ee509eb91ad56553.zip |
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
Diffstat (limited to 'test.cc')
-rw-r--r-- | test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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"} + }); } |