No easy way to debug the intermediate results of each XSLT step

Debugging a multi-step XSLT pipeline can be an arduous process. A no longer matching <xsl:template> in a later XSLT stylesheet, because an earlier stylesheet has already changed the node(), occurs frequently. Storing intermediate results from each step therefore is necessary but is not as easy as it could be, based on the existing batches. XSLT provides <xsl:result-document> for this purpose. Until now, however, this is only inserted manually if needed and not added as a general rule. The XProc 3.0 pipeline needs to take this into account from the outset and simply offer this functionality by adding an invocation parameter.