I just posted an example while a short answer might suite you just as well...
> Now my problem is that this document does not belong to the execution > context, and in fact here it belongs to nothing (and is leaked). Should I > just have the function object cache the generated documents, or is there a > better way of doing this? Just caching the pointer to the document and deleting it in the destructor would be sufficient. As stated in my previous mail, XalanTransformer clones all registered extension functions for each transformation. Therefore the instance of your extension function class will be deleted after the transformation. So it's sufficient just to delete all created documents in the destructor, they won't hang around until the program terminates. Hope that helps Wolfgang -- Wolfgang Schell [EMAIL PROTECTED] GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
