Hello Michael,
 
the S9API does not yet support the creation of secondary result documents which are not serialized to files, but can be retrieved as XDM values, does it? What one would need, it seems to me, would be a way how to associate result document URIs with "secondary" Destination objects.
 
Kind regards,
Hans-Juergen
 
Michael Kay wrote:
"My immediate reaction was that if you want any information out of a
transformation other than the result document, the thing to do is to
generate secondary result documents using xsl:result-document"