It is possible to create multiple output files as a result of XSL processing in XSLT 2 with tag xsl:result-document
.
This is usefull for example when some large database is available as a single XML document from which we need to extract only
certain parts and/or modify it. This particular example takes export of accounts from the Waveset Identity Management system,
filters them, modifies them and saves them in a separate file per account.
This principle might be however usefull in many other cases.
This work is largely based on an example from IBM developer works