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.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.