From c4fcfa9b39d9c29ecbc3ac1c12b7e5b2beb24a6d Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Mon, 12 May 2014 18:49:24 +0200 Subject: Implemented basic external transform function * "InputXSLT:transform" expects two input arguments and executes the given transformation into the given target file ** this function respresents a important step in the direction of making it possible to write an actual static site generator on top of InputXSLT using XSLT * added basic "transform" test case * updated README.md to include this new function --- src/plattform_guard.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/plattform_guard.cc') diff --git a/src/plattform_guard.cc b/src/plattform_guard.cc index 2c3cee4..da3b6d7 100644 --- a/src/plattform_guard.cc +++ b/src/plattform_guard.cc @@ -9,6 +9,7 @@ #include "function/read_file.h" #include "function/read_xml_file.h" #include "function/read_directory.h" +#include "function/transform.h" namespace InputXSLT { @@ -37,6 +38,12 @@ PlattformGuard::PlattformGuard() { xalan::XalanDOMString("read-directory"), InputXSLT::FunctionReadDirectory() ); + + xalan::XalanTransformer::installExternalFunctionGlobal( + customNamespace, + xalan::XalanDOMString("transform"), + InputXSLT::FunctionTransform() + ); } PlattformGuard::~PlattformGuard() { -- cgit v1.2.3