My question is how to handle user defined data in extension functions using 
Xalan library in C++ I can do something like this to return a string from an 
extension function Std::std sRtnVal = “some string”;
return executionContext.getXObjectFactory().createString( 
XalanDOMString(sRtnVal.c_str()) );but what if that string was a pointer to an 
object (a user defined data). What’s the proper way of doing it ?
I know it must be done through the XObjectPtr but how? return 
executionContext.getXObjectFactory().????????() ; Also how can I get this 
object (user defined data) back through the const XObjectArgVectorType& args
When the extension function get called with these arguments MyExtFunction 
(XPathExecutionContext&         executionContext, 
               XalanNode*                     context,
               const XObjectArgVectorType&    args,
               const Locator*                 locator) Please help us to 
resolve this. ThanksAjay

Reply via email to