diff options
author | Adrian Kummerländer | 2014-05-16 22:25:39 +0200 |
---|---|---|
committer | Adrian Kummerländer | 2014-05-16 22:25:39 +0200 |
commit | 7bd543e220c806177d805a8f4fbc13e951fe5788 (patch) | |
tree | 0fe8746d3ae922340a8fed56db7e112cd63dc811 /src/support/tuple | |
parent | ec6abad74348e9b577e1dd63b41d65263bb0334a (diff) | |
download | InputXSLT-7bd543e220c806177d805a8f4fbc13e951fe5788.tar InputXSLT-7bd543e220c806177d805a8f4fbc13e951fe5788.tar.gz InputXSLT-7bd543e220c806177d805a8f4fbc13e951fe5788.tar.bz2 InputXSLT-7bd543e220c806177d805a8f4fbc13e951fe5788.tar.lz InputXSLT-7bd543e220c806177d805a8f4fbc13e951fe5788.tar.xz InputXSLT-7bd543e220c806177d805a8f4fbc13e951fe5788.tar.zst InputXSLT-7bd543e220c806177d805a8f4fbc13e951fe5788.zip |
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
Diffstat (limited to 'src/support/tuple')
-rw-r--r-- | src/support/tuple/mapper.h | 2 | ||||
-rw-r--r-- | src/support/tuple/xobject_value.cc | 5 |
2 files changed, 6 insertions, 1 deletions
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<std::string>(const xalan::XObjectPtr& ptr) { return toString(ptr->str()); } +template <> +xalan::XObjectPtr get<xalan::XObjectPtr>(const xalan::XObjectPtr& ptr) { + return ptr; +} + } } |