Nearly all XSLT instructions that accept a sequence constructor also allow the input to be supplied using a select expression.
xsl:result-document is an exception.
A particular use case for this is with a multi-phase transformation where you want to capture the result of the first phase of processing in a variable, and then output it before further processing, perhaps for diagnostics or perhaps because the processing pipeline branches.
Nearly all XSLT instructions that accept a sequence constructor also allow the input to be supplied using a select expression.
xsl:result-documentis an exception.A particular use case for this is with a multi-phase transformation where you want to capture the result of the first phase of processing in a variable, and then output it before further processing, perhaps for diagnostics or perhaps because the processing pipeline branches.