IResultDocumentHandler notifications
Added by Anonymous almost 16 years ago
Legacy ID: #6087357 Legacy Poster: riko (reksteen)
Hi I find the IResultDocumentHandler a great feature which enables me to send multiple results from a transform wherever I want (e.g. to memory instead of files). One thing I would like to know, is it possible to somehow be notified when each result document completes? I have quite a long-running transformation and would ideally like to start processing each result document as soon as it's completed instead of waiting for the entire transformation and all the result documents to be completed (if this is even possible). Is there some way to do this? Thanks Riko
Replies (2)
RE: IResultDocumentHandler notifications - Added by Anonymous almost 16 years ago
Legacy ID: #6129256 Legacy Poster: Michael Kay (mhkay)
I would suggest making the HandleResultDocument() method return an XmlDestination that is your own class of XmlDestination, subclassing one of the standard kinds of XmlDestination. You can then override the Close() method of XmlDestination to be informed when writing of the document is finished.
RE: IResultDocumentHandler notifications - Added by Anonymous almost 16 years ago
Legacy ID: #6179053 Legacy Poster: riko (reksteen)
Thanks, that is a great idea, I should have thought of that myself! I just want to say that saxon is one of the best open source projects I have used both in terms of the quality of the product and of the support available. I was initially hesitant to use saxon for .NET as it wasn't "written in .NET" (being a purist), but I am so glad I did, since it is flexible, easily extensible, well designed and well documented. Thanks again.
Please register to reply