Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IXpathVariables::externFunction ( P6WCHAR pFuncName,
P6UINT32  funcLength,
P6XPATH_RESULT pParams,
P6UINT32  numParams,
P6XPATH_VAR pVarValue 
)
pure virtual

Invoke a function defined in an external component (e.g., an XSLT function).

Any strings that are returned by the external function need to be copied if the caller needs to keep the value. The external function is responsible for the freeing of any returned string value.

p6IXMLNode are referenced counted. If the caller needs to keep the object around then if should do an "addref()" on that object.

Parameters
pFuncName[ in ] The function name to execute
funcLength[ in ] Length of the function name not including parameters (e.g., func1( a , b ), length is 5).
pParams[ in ] An array of parameter values
numParams[ in ] Number of entries in the pParams array (arity)
pVarValue[ out ] A p6IXMLNode or string that is the result of the function execution.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgOne of the parameters is NULL. P6R::eNotFoundNo matching variable can be found.