From 7bd543e220c806177d805a8f4fbc13e951fe5788 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Fri, 16 May 2014 22:25:39 +0200 Subject: Added XObjectPtr parameter to FunctionTransform * the given XObject is passed to the called transformation ** this was done to enable templates to pass information to each other ** this should support any type usable in a XPath context to be passed as an argument * expanded FunctionTransform test case accordingly --- src/support/tuple/mapper.h | 2 +- src/support/tuple/xobject_value.cc | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/support/tuple') diff --git a/src/support/tuple/mapper.h b/src/support/tuple/mapper.h index c95365e..28c5f3b 100644 --- a/src/support/tuple/mapper.h +++ b/src/support/tuple/mapper.h @@ -55,7 +55,7 @@ namespace Mapper { ) ); } -}; +} } diff --git a/src/support/tuple/xobject_value.cc b/src/support/tuple/xobject_value.cc index 3883436..fac4d96 100644 --- a/src/support/tuple/xobject_value.cc +++ b/src/support/tuple/xobject_value.cc @@ -13,6 +13,11 @@ std::string get(const xalan::XObjectPtr& ptr) { return toString(ptr->str()); } +template <> +xalan::XObjectPtr get(const xalan::XObjectPtr& ptr) { + return ptr; +} + } } -- cgit v1.2.3