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/xobject_value.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/support/tuple/xobject_value.cc') 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