Ivan Bogouchev / Иван Богушев wrote:
Hi David,


2005/9/8, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:

Tthanks for the reply, Dave, it that made the stylesheet work.

Just one more question: what about the str:replace() function?
It seems it is not implemented in xalan-c 1.9.

None of the EXSLT functions that require returning node-sets are
implemented, because there's no public way to create them.


Actually after digging a while, what I do in order to create a node-set is:

 /* pseudo code */
  create a xalan document (either parse an xsltsource or via document builder)
BorrowReturnMutableNodeRefList mnl(executionContext);
mnl->addNodeInDocOrder(theXalanDocument, executionContext);
mnl->setDocumentOrder();
return executionContext.getXObjectFactory().createNodeSet(mnl);
and it actually works.
Is there a problem with this?
What do you mean by "no public way to create node-sets"?


Creating a node-set with a single document node in it is one thing, but creating arbitrary result tree fragments is not trivial to do.

Dave

Reply via email to