Hi Hope this isn't a stupid question. Using Xalan 1.10/Xerces 2.7, I need to implement an extension function that returns a nodeset. The nodeset needs to be a document fragment, comprising text nodes (which my function needs to create) and (copies of?) existing source document nodes that are given as input args to the function.
I'm really struggling to find how to do this. Using BorrowReturnMutableNodeRefList I've been able to return the pre-existing input nodes, but I can't find how to create the new text nodes. I've reviewed FunctionNodeset.cpp and an archived message from David Bertoni that suggests building a DOM with Xerces and then using XercesDocumentWrapper and XNodeSetBase. That seems to me to be the right track, but I need to return a DocumentFragment, for which I presumably need a XercesDocumentFragmentWrapper, which is a class that doesn't seem to exist. Am I on the right lines, or missing a much easier way? If I'm going in the right direction, why isn't there a XercesDocumentFragmentWrapper? Is it possible to build one myself, or is there some reason why it can't be built? Many thanks for any assistance, Simon Scott