Looking at the code for a sample DocTransformer, it seems that a DocTransformer only has access to the document itself, not to the whole results. Because of this, it isn't possible to use a DocTransformer to merge, for example, the highlighting results into the main document.
Am I missing something? Upayavira