Per Jessen,
Thanks a lot for the hint.
I was able to complete this function by,
1. Obtain a BorrowReturnMutableNodeRefList, like
XPathExecutionContext::BorrowReturnMutableNodeRefList brMNRL(executionContext);
2. Add nodes of XalanNode to it using addNode method.
3. return a NodeSet to Xalan,
return executionContext.getXObjectFactory().createNodeSet( brMNRL );
Thanks,
srini
-----Original Message-----
From: Per Jessen
To: [email protected]
Sent: 5/10/2004 7:59 AM
Subject: Re: Extension function example
[EMAIL PROTECTED] wrote:
> Has anyone written such an extension function? If so, could you share
the
> structure that Xalan expects for a node-set from an Extension
Function.
Hi Srini,
take a look at the node-set function that is part of XalanC.
Look in xml-xalan/c/src/xalanc/XalanExtensions/FunctionNodeSet.cpp
/Per Jessen, Zurich
